Commit 548191a4 by Jeff Law

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
parent 68281574
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment