summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/mdev.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 84d5e1c..65b4da4 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -78,8 +78,12 @@ static void make_device(char *path, int delete)
val = strtok(vline, " \t");
vline = NULL;
} while (val && !*val);
- if (!val)
- break;
+ if (!val) {
+ if (field)
+ break;
+ else
+ goto next_line;
+ }
if (field == 0) {