OSDN Git Service

* fix-header.c (main): Do not pass a null pointer to strcmp.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 29 Aug 1999 09:28:09 +0000 (09:28 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 29 Aug 1999 09:28:09 +0000 (09:28 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@28960 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/fix-header.c

index 1b24df4..39571af 100644 (file)
@@ -1,3 +1,7 @@
+Sun Aug 29 03:27:23 1999  Scott Weikart <scott@igc.apc.org>
+
+       * fix-header.c (main): Do not pass a null pointer to strcmp.
+
 Sun Aug 29 03:18:48 1999  William Bader  (william@nscs.fast.net)
 
        * configure.in (i[34567]86-*-sco3.2v4*): Target does not truncate
index af0577e..1e6c5c4 100644 (file)
@@ -1140,7 +1140,7 @@ main (argc, argv)
          if (entry->flags)
            add_symbols (entry->flags, entry->names);
          entry++;
-         if (strcmp (entry->name, CONTINUED) != 0)
+         if (!entry->name || strcmp (entry->name, CONTINUED) != 0)
            break;
        }
     }