From 7cba04f6dedcf888170496bf8f1857c4069d1131 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 1 Aug 2009 10:13:20 +0000 Subject: More NULL pointer fixes Signed-off-by: Blue Swirl --- bsd-user/elfload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bsd-user/elfload.c') diff --git a/bsd-user/elfload.c b/bsd-user/elfload.c index ed25e85..678f3e6 100644 --- a/bsd-user/elfload.c +++ b/bsd-user/elfload.c @@ -1014,7 +1014,7 @@ static const char *lookup_symbolxx(struct syminfo *s, target_ulong orig_addr) key.st_value = orig_addr; sym = bsearch(&key, syms, s->disas_num_syms, sizeof(*syms), symfind); - if (sym != 0) { + if (sym != NULL) { return s->disas_strtab + sym->st_name; } -- cgit v1.1