mdoprobe: fix SEGV bug (by Vlad Dronnikov)

This commit is contained in:
Denis Vlasenko 2008-06-22 16:59:46 +00:00
parent e3eae0d445
commit 8124a96c34

View File

@ -443,10 +443,8 @@ static struct dep_t *build_dep(void)
/* It's a dep description continuation */ /* It's a dep description continuation */
p = line_buffer; p = line_buffer;
p = skip_whitespace(p);
/* p points to the first dependable module; if NULL, no dependable module */ /* 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]; char *end = &line_buffer[l-1];
const char *deps; const char *deps;
char *dep; char *dep;