Browse Source

prevent core dump when the input file is not present

ceriel 35 years ago
parent
commit
26a8bcfb8d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util/misc/convert.c

+ 1 - 1
util/misc/convert.c

@@ -84,7 +84,7 @@ error(s,a1,a2,a3,a4)
 fatal(s,a1,a2,a3,a4)
 	char *s;
 {
-	C_close();
+	if (C_busy()) C_close();
 	error(s,a1,a2,a3,a4);
 	exit(1);
 }