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:
parent
6828157475
commit
548191a42f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user