From d2d877933a6e7a132fc5d327a80c96d11f8fe667 Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Tue, 11 Mar 2014 09:09:43 +0200 Subject: [PATCH] bugfix: only fclose recout if it was opened --- src/encmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encmain.c b/src/encmain.c index e9295f85..79cb19ab 100644 --- a/src/encmain.c +++ b/src/encmain.c @@ -361,7 +361,7 @@ int main(int argc, char *argv[]) fclose(input); fclose(output); if(cqmfile != NULL) fclose(cqmfile); - fclose(recout); + if(recout != NULL) fclose(recout); // Deallocating config_destroy(cfg);