projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6828157
)
varasm.c (remove_from_pending_weak_list): Verity t->name is non-NULL before passing...
author
Jeff Law
<law@gcc.gnu.org>
Wed, 9 Jun 1999 12:12:17 +0000
(06:12 -0600)
committer
Jeff Law
<law@gcc.gnu.org>
Wed, 9 Jun 1999 12:12:17 +0000
(06:12 -0600)
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
patch
|
blob
|
history
diff --git
a/gcc/varasm.c
b/gcc/varasm.c
index 76f40587943929ca7ac0954282e25925fa61249f..f463d847d4ad742f3d745d5bccabf6cc42c2de4a 100644
(file)
--- 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;
}
}