OSDN Git Service

h
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Jun 1999 12:12:17 +0000 (12:12 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Jun 1999 12:12:17 +0000 (12:12 +0000)
        * varasm.c (remove_from_pending_weak_list): Verity t->name
        is non-NULL before passing it to strcmp.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27450 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/varasm.c

index 76f4058..f463d84 100644 (file)
@@ -4388,7 +4388,7 @@ remove_from_pending_weak_list (name)
       struct weak_syms *t;
       for (t = weak_decls; t; t = t->next)
        {
-         if (strcmp (name, t->name) == 0)
+         if (t->name && strcmp (name, t->name) == 0)
            t->name = NULL;
        }
     }