varasm.c (remove_from_pending_weak_list): Verity t->name is non-NULL before passing...
authorJeff Law <law@gcc.gnu.org>
Wed, 9 Jun 1999 12:12:17 +0000 (06:12 -0600)
committerJeff Law <law@gcc.gnu.org>
Wed, 9 Jun 1999 12:12:17 +0000 (06:12 -0600)
h
        * varasm.c (remove_from_pending_weak_list): Verity t->name
        is non-NULL before passing it to strcmp.

From-SVN: r27450

gcc/varasm.c

index 76f40587943929ca7ac0954282e25925fa61249f..f463d847d4ad742f3d745d5bccabf6cc42c2de4a 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;
        }
     }