From a6e8373349f20b7976f266183f8aabd75f839fa7 Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Fri, 14 Feb 2014 14:38:53 +0200 Subject: [PATCH] Fixed crash issue on windows when cqmfile was not specified fclose(cqmfile) crashed on windows when cqmfile was NULL --- src/encmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encmain.c b/src/encmain.c index cd3e730a..8cbb8b42 100644 --- a/src/encmain.c +++ b/src/encmain.c @@ -295,7 +295,7 @@ int main(int argc, char *argv[]) fclose(input); fclose(output); - fclose(cqmfile); + if(cqmfile != NULL) fclose(cqmfile); #ifdef _DEBUG fclose(recout); #endif