From b31a1e3f17cbeab3b625441a1332559b89878e73 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Thu, 5 Aug 1993 04:06:59 +0000 Subject: [PATCH] (handler): Check whether c_file and o_file are 0. From-SVN: r5073 --- gcc/collect2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.30.2