From: ceriel Date: Tue, 31 Mar 1987 08:15:22 +0000 (+0000) Subject: more robust version X-Git-Tag: release-5-5~4272 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=b53a5e2540421302bb9ba17c4b34f202c3763fb9;p=ack.git more robust version --- diff --git a/util/misc/convert.c b/util/misc/convert.c index bdf23486a..d871ad4ab 100644 --- a/util/misc/convert.c +++ b/util/misc/convert.c @@ -55,10 +55,10 @@ main(argc,argv) if (p->em_type == EM_FATAL) { fatal("%s", EM_error); } - if (p->em_type == EM_ERROR) { + if (EM_error) { error("%s", EM_error); } - if (!EM_mkcalls(p)) { + if (p->em_type != EM_ERROR && !EM_mkcalls(p)) { error("%s", EM_error); } p = EM_getinstr();