From 548191a42fa1e59ff1db2f946766ab8ec18c5ddd Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 9 Jun 1999 06:12:17 -0600 Subject: [PATCH] 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 --- gcc/varasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/varasm.c b/gcc/varasm.c index 76f40587943..f463d847d4a 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -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; } } -- 2.30.2