diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-22 16:59:46 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-22 16:59:46 +0000 |
commit | 8124a96c3492efbeba00fe1999e6c67fb236ba2f (patch) | |
tree | f07e14ce02eb8d4d7d261aae68f7c2e02c511ab3 | |
parent | e3eae0d445a59b2165de57108e5ec46d231d144a (diff) | |
download | busybox-w32-8124a96c3492efbeba00fe1999e6c67fb236ba2f.tar.gz busybox-w32-8124a96c3492efbeba00fe1999e6c67fb236ba2f.tar.bz2 busybox-w32-8124a96c3492efbeba00fe1999e6c67fb236ba2f.zip |
mdoprobe: fix SEGV bug (by Vlad Dronnikov)
-rw-r--r-- | modutils/modprobe.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modutils/modprobe.c b/modutils/modprobe.c index 84a2d7686..3ac5a81a5 100644 --- a/modutils/modprobe.c +++ b/modutils/modprobe.c | |||
@@ -443,10 +443,8 @@ static struct dep_t *build_dep(void) | |||
443 | /* It's a dep description continuation */ | 443 | /* It's a dep description continuation */ |
444 | p = line_buffer; | 444 | p = line_buffer; |
445 | 445 | ||
446 | p = skip_whitespace(p); | ||
447 | |||
448 | /* p points to the first dependable module; if NULL, no dependable module */ | 446 | /* p points to the first dependable module; if NULL, no dependable module */ |
449 | if (p && *p) { | 447 | if (p && (p = skip_whitespace(p))[0] != '\0') { |
450 | char *end = &line_buffer[l-1]; | 448 | char *end = &line_buffer[l-1]; |
451 | const char *deps; | 449 | const char *deps; |
452 | char *dep; | 450 | char *dep; |