summaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-06-09 12:12:17 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1999-06-09 12:12:17 +0000
commitb92929499af63aa5d81ad5a0f5b460773421788b (patch)
tree4c6b6a05b7123c35b37567ef543a1a09f17e4ece /gcc/varasm.c
parent9a11137a020c54ad8d0ac0fe696d316916d7fdf9 (diff)
downloadgcc-b92929499af63aa5d81ad5a0f5b460773421788b.tar.gz
h
* varasm.c (remove_from_pending_weak_list): Verity t->name is non-NULL before passing it to strcmp. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27450 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}