From 71bbf51abff1ff980c91e88fce8b9b3094dc98d6 Mon Sep 17 00:00:00 2001 From: sam Date: Sun, 7 Sep 2003 13:12:27 +0000 Subject: [PATCH] * Fixed a crash for symbols found in the list but that dlopen() could not properly load. git-svn-id: svn://svn.zoy.org/elk/trunk@120 55e467fa-43c5-0310-a8a2-de718669efc6 --- src/stab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stab.c b/src/stab.c index df08f19..71541ff 100644 --- a/src/stab.c +++ b/src/stab.c @@ -108,7 +108,7 @@ void Call_Initializers (SYMTAB *tab, char *addr, int which) { ; for (sp = tab->first; sp; sp = sp->next) { - if ((char *)sp->value < addr) + if (!sp->value || (char *)sp->value < addr) continue; p = sp->name; #ifdef SYMS_BEGIN_WITH