svn commit: trunk/busybox/modutils
vda at busybox.net
vda at busybox.net
Sun Jun 22 16:59:46 UTC 2008
Author: vda
Date: 2008-06-22 09:59:46 -0700 (Sun, 22 Jun 2008)
New Revision: 22472
Log:
mdoprobe: fix SEGV bug (by Vlad Dronnikov)
Modified:
trunk/busybox/modutils/modprobe.c
Changeset:
Modified: trunk/busybox/modutils/modprobe.c
===================================================================
--- trunk/busybox/modutils/modprobe.c 2008-06-22 16:38:53 UTC (rev 22471)
+++ trunk/busybox/modutils/modprobe.c 2008-06-22 16:59:46 UTC (rev 22472)
@@ -443,10 +443,8 @@
/* It's a dep description continuation */
p = line_buffer;
- p = skip_whitespace(p);
-
/* p points to the first dependable module; if NULL, no dependable module */
- if (p && *p) {
+ if (p && (p = skip_whitespace(p))[0] != '\0') {
char *end = &line_buffer[l-1];
const char *deps;
char *dep;
More information about the busybox-cvs
mailing list