varasm.c (remove_from_pending_weak_list): Verity t->name is non-NULL before passing it to strcmp.

h
        * varasm.c (remove_from_pending_weak_list): Verity t->name
        is non-NULL before passing it to strcmp.

From-SVN: r27450
This commit is contained in:
Jeff Law 1999-06-09 06:12:17 -06:00
parent 6828157475
commit 548191a42f
1 changed files with 1 additions and 1 deletions

View 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;
}
}