From ede6189bcea8a34540e404541e5514ac9b9792ab Mon Sep 17 00:00:00 2001 From: Hannes Braun Date: Sun, 19 Oct 2025 23:50:19 +0200 Subject: [PATCH] Don't close output when it is null --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index a242ecf..adddf15 100644 --- a/main.cpp +++ b/main.cpp @@ -646,7 +646,9 @@ int main(int32_t argc, char** argv) } std::fclose(input); - std::fclose(output); + if (output != nullptr) { + std::fclose(output); + } return 0; }