(handler): Check whether c_file and o_file are 0.
authorRichard Stallman <rms@gnu.org>
Thu, 5 Aug 1993 04:06:59 +0000 (04:06 +0000)
committerRichard Stallman <rms@gnu.org>
Thu, 5 Aug 1993 04:06:59 +0000 (04:06 +0000)
From-SVN: r5073

gcc/collect2.c

index 83821dc2915b6132a42dc476cf47c80f65e6d967..b50ab77bf1112a8e000097329e3800fffda5a21f 100644 (file)
@@ -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);