diff options
author | Mike Frysinger <vapier@gentoo.org> | 2008-01-23 21:48:26 +0300 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2008-01-23 21:48:26 +0300 |
commit | 46ef46aefb800e3865276b99caf88b6c309a841f (patch) | |
tree | 778def630124a475ebd47cf0f2482b2c194a8e43 /util-linux | |
parent | 46904bfbcc4e8a5ede9cebc8d051350ee61bf8ae (diff) |
as reported by George Boudreau, make sure we properly skip blank lines
Diffstat (limited to 'util-linux')
-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) val = strtok(vline, " \t"); vline = NULL; } while (val && !*val); - if (!val) - break; + if (!val) { + if (field) + break; + else + goto next_line; + } if (field == 0) { |