diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2011-08-23 18:34:06 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2011-08-23 18:55:41 +0200 |
commit | 2671fa11c4567a9e99f00808482e0cb8c341bfac (patch) | |
tree | dd61ab6ee1700de8ffe9df0b90382031df8392af /modules_dep | |
parent | cdcf4298d208d16ade61536d89002e61b3bbbaee (diff) |
close only successfully opened files
Diffstat (limited to 'modules_dep')
-rw-r--r-- | modules_dep/modules_dep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules_dep/modules_dep.c b/modules_dep/modules_dep.c index 6fedab0..b322db7 100644 --- a/modules_dep/modules_dep.c +++ b/modules_dep/modules_dep.c @@ -169,6 +169,7 @@ int gmake_module = 0; fprintf(stderr, "error reading %s\n", buffer); exit(1); } + fclose(fp); } else { @@ -177,7 +178,6 @@ int gmake_module = 0; fprintf(stderr, "skipping %s, probably not a module\n", filename); } } - fclose(fp); return module; } |