diff options
Diffstat (limited to 'scripts/basic')
| -rw-r--r-- | scripts/basic/fixdep.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/basic/fixdep.c b/scripts/basic/fixdep.c index bbf62cb1f819..86a61d642220 100644 --- a/scripts/basic/fixdep.c +++ b/scripts/basic/fixdep.c | |||
| @@ -290,13 +290,11 @@ static void do_config_file(const char *filename) | |||
| 290 | map = malloc(st.st_size + 1); | 290 | map = malloc(st.st_size + 1); |
| 291 | if (!map) { | 291 | if (!map) { |
| 292 | perror("fixdep: malloc"); | 292 | perror("fixdep: malloc"); |
| 293 | close(fd); | 293 | exit(2); |
| 294 | return; | ||
| 295 | } | 294 | } |
| 296 | if (read(fd, map, st.st_size) != st.st_size) { | 295 | if (read(fd, map, st.st_size) != st.st_size) { |
| 297 | perror("fixdep: read"); | 296 | perror("fixdep: read"); |
| 298 | close(fd); | 297 | exit(2); |
| 299 | return; | ||
| 300 | } | 298 | } |
| 301 | map[st.st_size] = '\0'; | 299 | map[st.st_size] = '\0'; |
| 302 | close(fd); | 300 | close(fd); |
