diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-04-19 22:09:34 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-04-19 22:23:00 +0200 |
commit | e9a61995077eb15027cf3d044aa15a8cb67c13ae (patch) | |
tree | 29459aff37ba654739ae5e74944dc27562b4c471 | |
parent | 60777ad8ce97997493bcaf3eddd3c9c447756cb3 (diff) | |
download | MultiMC-e9a61995077eb15027cf3d044aa15a8cb67c13ae.tar MultiMC-e9a61995077eb15027cf3d044aa15a8cb67c13ae.tar.gz MultiMC-e9a61995077eb15027cf3d044aa15a8cb67c13ae.tar.lz MultiMC-e9a61995077eb15027cf3d044aa15a8cb67c13ae.tar.xz MultiMC-e9a61995077eb15027cf3d044aa15a8cb67c13ae.zip |
NOISSUE fix benign issue in pack200 unpacker binary.
-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; } |