summaryrefslogtreecommitdiff
path: root/namedev_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'namedev_parse.c')
-rw-r--r--namedev_parse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/namedev_parse.c b/namedev_parse.c
index eabd9c98bb..7cd676c390 100644
--- a/namedev_parse.c
+++ b/namedev_parse.c
@@ -259,7 +259,10 @@ static int namedev_parse(const char *filename, void *data)
dev.ignore_remove = 1;
}
}
- strfieldcpy(dev.name, temp3);
+ if (temp3[0] != '\0')
+ strfieldcpy(dev.name, temp3);
+ else
+ dev.ignore_device = 1;
valid = 1;
continue;
}