diff options
Diffstat (limited to 'libraries/pack200/anti200.cpp')
-rw-r--r-- | libraries/pack200/anti200.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libraries/pack200/anti200.cpp b/libraries/pack200/anti200.cpp index 1e1ec0c8..944e80e5 100644 --- a/libraries/pack200/anti200.cpp +++ b/libraries/pack200/anti200.cpp @@ -16,15 +16,15 @@ int main(int argc, char **argv) } FILE *input = fopen(argv[1], "rb"); - FILE *output = fopen(argv[2], "wb"); if (!input) { std::cerr << "Can't open input file"; return EXIT_FAILURE; } + FILE *output = fopen(argv[2], "wb"); if (!output) { - fclose(output); + fclose(input); std::cerr << "Can't open output file"; return EXIT_FAILURE; } |