summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorMike Frysinger2008-01-23 18:48:26 +0000
committerMike Frysinger2008-01-23 18:48:26 +0000
commit46ef46aefb800e3865276b99caf88b6c309a841f (patch)
tree778def630124a475ebd47cf0f2482b2c194a8e43 /util-linux
parent46904bfbcc4e8a5ede9cebc8d051350ee61bf8ae (diff)
downloadbusybox-46ef46aefb800e3865276b99caf88b6c309a841f.zip
busybox-46ef46aefb800e3865276b99caf88b6c309a841f.tar.gz
as reported by George Boudreau, make sure we properly skip blank lines
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) {