aboutsummaryrefslogtreecommitdiff
path: root/linux-user/elfload.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-08-01 10:13:20 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-08-01 10:13:20 +0000
commit7cba04f6dedcf888170496bf8f1857c4069d1131 (patch)
treeaffaa99c83934efb6c95255ee6bf36973f5be860 /linux-user/elfload.c
parent660f11be541813be5f09fbaf44d8e7c6d5a5bbfe (diff)
More NULL pointer fixes
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'linux-user/elfload.c')
-rw-r--r--linux-user/elfload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 63d0ae4e90..a38167d333 100644
--- a/linux-user/elfload.c
+++ b/linux-user/elfload.c
@@ -1220,7 +1220,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;
}