From: ceriel Date: Tue, 15 Aug 1989 09:06:26 +0000 (+0000) Subject: prevent core dump when the input file is not present X-Git-Tag: release-5-5~2285 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=940752351014e456be7eb635561e109175910a3f;p=ack.git prevent core dump when the input file is not present --- diff --git a/util/misc/convert.c b/util/misc/convert.c index a599b9765..9306dfdba 100644 --- a/util/misc/convert.c +++ b/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); }