From f92dad2d9d7dd12930078a03a0b84af607cccbd3 Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 14 Apr 1988 16:09:02 +0000 Subject: [PATCH] only fclose on non-NULL streams --- mach/proto/ncg/gencode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mach/proto/ncg/gencode.c b/mach/proto/ncg/gencode.c index c103c8844..c33f492ec 100644 --- a/mach/proto/ncg/gencode.c +++ b/mach/proto/ncg/gencode.c @@ -52,7 +52,7 @@ out_finish() { fflush(stderr); else #endif - fclose(codefile); + if (codefile) fclose(codefile); #ifdef TABLEDEBUG termlset(); #endif -- 2.34.1