aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-08-05 04:06:59 +0000
committerRichard Stallman <rms@gnu.org>1993-08-05 04:06:59 +0000
commitb31a1e3f17cbeab3b625441a1332559b89878e73 (patch)
tree64a391d83d07f0a93682297d2b2ffab0018e77bf /gcc
parent956af06945bcc89d5c7a7382d3e47c9090a98d4c (diff)
downloadgcc-b31a1e3f17cbeab3b625441a1332559b89878e73.zip
gcc-b31a1e3f17cbeab3b625441a1332559b89878e73.tar.gz
gcc-b31a1e3f17cbeab3b625441a1332559b89878e73.tar.bz2
(handler): Check whether c_file and o_file are 0.
From-SVN: r5073
Diffstat (limited to 'gcc')
-rw-r--r--gcc/collect2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 83821dc..b50ab77 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);