From: Richard Stallman Date: Thu, 5 Aug 1993 04:06:59 +0000 (+0000) Subject: (handler): Check whether c_file and o_file are 0. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b31a1e3f17cbeab3b625441a1332559b89878e73;p=gcc.git (handler): Check whether c_file and o_file are 0. From-SVN: r5073 --- diff --git a/gcc/collect2.c b/gcc/collect2.c index 83821dc2915..b50ab77bf11 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -330,10 +330,10 @@ static void handler (signo) int signo; { - if (c_file[0]) + if (c_file != 0 && c_file[0]) maybe_unlink (c_file); - if (o_file[0]) + if (o_file != 0 && o_file[0]) maybe_unlink (o_file); signal (signo, SIG_DFL);