Commit fe97b665 authored by Andreas Werner's avatar Andreas Werner
Browse files

try fixing windows problem

parent 696957b4
......@@ -273,7 +273,8 @@ static void *read_file(const char *filename)
if (fd < 0) {
fprintf(stderr, "fixdep: error opening file: ");
perror(filename);
exit(2);
//exit(2);
return NULL;
}
if (fstat(fd, &st) < 0) {
fprintf(stderr, "fixdep: error fstat'ing file: ");
......@@ -365,8 +366,10 @@ static void parse_dep_file(char *m, const char *target)
}
buf = read_file(m);
parse_config_file(buf);
free(buf);
if (buf != NULL) {
parse_config_file(buf);
free(buf);
}
}
if (is_last)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment