summaryrefslogtreecommitdiffstats
path: root/libraries/pack200/anti200.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2017-04-19 22:09:34 +0200
committerPetr Mrázek <peterix@gmail.com>2017-04-19 22:23:00 +0200
commite9a61995077eb15027cf3d044aa15a8cb67c13ae (patch)
tree29459aff37ba654739ae5e74944dc27562b4c471 /libraries/pack200/anti200.cpp
parent60777ad8ce97997493bcaf3eddd3c9c447756cb3 (diff)
downloadMultiMC-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.
Diffstat (limited to 'libraries/pack200/anti200.cpp')
-rw-r--r--libraries/pack200/anti200.cpp4
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;
}