From: Mike Frysinger Date: Wed, 23 Jan 2008 18:48:26 +0000 (-0000) Subject: as reported by George Boudreau, make sure we properly skip blank lines X-Git-Tag: 1_10_0~264 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46ef46aefb800e3865276b99caf88b6c309a841f;p=platform%2Fupstream%2Fbusybox.git as reported by George Boudreau, make sure we properly skip blank lines --- 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) {