only fclose on non-NULL streams
authorceriel <none@none>
Thu, 14 Apr 1988 16:09:02 +0000 (16:09 +0000)
committerceriel <none@none>
Thu, 14 Apr 1988 16:09:02 +0000 (16:09 +0000)
mach/proto/ncg/gencode.c

index c103c88..c33f492 100644 (file)
@@ -52,7 +52,7 @@ out_finish() {
                fflush(stderr);
        else
 #endif
-               fclose(codefile);
+               if (codefile) fclose(codefile);
 #ifdef TABLEDEBUG
        termlset();
 #endif