From e9a61995077eb15027cf3d044aa15a8cb67c13ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Wed, 19 Apr 2017 22:09:34 +0200 Subject: NOISSUE fix benign issue in pack200 unpacker binary. --- libraries/pack200/anti200.cpp | 4 ++-- 1 file 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; } -- cgit v1.2.3