diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-01-23 18:48:26 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-01-23 18:48:26 +0000 |
commit | 46ef46aefb800e3865276b99caf88b6c309a841f (patch) | |
tree | 778def630124a475ebd47cf0f2482b2c194a8e43 /util-linux/mdev.c | |
parent | 46904bfbcc4e8a5ede9cebc8d051350ee61bf8ae (diff) | |
download | busybox-w32-46ef46aefb800e3865276b99caf88b6c309a841f.tar.gz busybox-w32-46ef46aefb800e3865276b99caf88b6c309a841f.tar.bz2 busybox-w32-46ef46aefb800e3865276b99caf88b6c309a841f.zip |
as reported by George Boudreau, make sure we properly skip blank lines
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r-- | util-linux/mdev.c | 8 |
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 | ||