aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 84d5e1c0e..65b4da4f4 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -78,8 +78,12 @@ static void make_device(char *path, int delete)
78 val = strtok(vline, " \t"); 78 val = strtok(vline, " \t");
79 vline = NULL; 79 vline = NULL;
80 } while (val && !*val); 80 } while (val && !*val);
81 if (!val) 81 if (!val) {
82 break; 82 if (field)
83 break;
84 else
85 goto next_line;
86 }
83 87
84 if (field == 0) { 88 if (field == 0) {
85 89