commit | 8124a96c3492efbeba00fe1999e6c67fb236ba2f | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Sun Jun 22 16:59:46 2008 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Sun Jun 22 16:59:46 2008 +0000 |
tree | f07e14ce02eb8d4d7d261aae68f7c2e02c511ab3 | |
parent | e3eae0d445a59b2165de57108e5ec46d231d144a [diff] |
mdoprobe: fix SEGV bug (by Vlad Dronnikov)
diff --git a/modutils/modprobe.c b/modutils/modprobe.c index 84a2d76..3ac5a81 100644 --- a/modutils/modprobe.c +++ b/modutils/modprobe.c
@@ -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;