summaryrefslogtreecommitdiff
path: root/package/busybox/busybox-1.9.0-mdev.patch
blob: 1ac81eb0bb65bb1d80bd61a000fe29e4c08c78eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- busybox-1.9.0/util-linux/mdev.c	Fri Dec 21 23:16:45 2007
+++ busybox-1.9.0-mdev/util-linux/mdev.c	Tue Feb 12 16:57:00 2008
@@ -78,8 +78,12 @@
 					val = strtok(vline, " \t");
 					vline = NULL;
 				} while (val && !*val);
-				if (!val)
-					break;
+				if (!val) {
+					if (field)
+						break;
+					else
+						goto next_line;
+				}
 
 				if (field == 0) {