diff options
-rw-r--r-- | scripts/basic/fixdep.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index 426b4888b..66be73aad 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c | |||
@@ -338,6 +338,11 @@ void parse_dep_file(void *map, size_t len) | |||
338 | do p--; while (!isalnum((unsigned char)*p)); | 338 | do p--; while (!isalnum((unsigned char)*p)); |
339 | p++; | 339 | p++; |
340 | } | 340 | } |
341 | if (p < m) { | ||
342 | /* we've consumed the last filename of this list | ||
343 | already. */ | ||
344 | break; | ||
345 | } | ||
341 | memcpy(s, m, p-m); s[p-m] = 0; | 346 | memcpy(s, m, p-m); s[p-m] = 0; |
342 | if (strrcmp(s, "include/autoconf.h") && | 347 | if (strrcmp(s, "include/autoconf.h") && |
343 | strrcmp(s, "arch/um/include/uml-config.h") && | 348 | strrcmp(s, "arch/um/include/uml-config.h") && |