minor bug fix
authorceriel <none@none>
Fri, 16 Jan 1987 19:20:58 +0000 (19:20 +0000)
committerceriel <none@none>
Fri, 16 Jan 1987 19:20:58 +0000 (19:20 +0000)
util/ncgg/output.c

index 978f095..0175fb1 100644 (file)
@@ -69,7 +69,7 @@ opnfile(f,s) FILE **f; char *s; {
 
 unlfile(f,s) FILE *f; char *s; {
 
-       fclose(f);
+       if (f) fclose(f);
        if (unlink(s)<0)
                error("%s incorrect, must be removed!!",s);
 }