summary refs log tree commit diff stats
path: root/elf_ops.h
diff options
context:
space:
mode:
Diffstat (limited to 'elf_ops.h')
-rw-r--r--elf_ops.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf_ops.h b/elf_ops.h
index 72cd83eb74..699651c9e1 100644
--- a/elf_ops.h
+++ b/elf_ops.h
@@ -82,7 +82,7 @@ static const char *glue(lookup_symbol, SZ)(struct syminfo *s, target_ulong orig_
     key.st_value = orig_addr;
 
     sym = bsearch(&key, syms, s->disas_num_syms, sizeof(*syms), glue(symfind, SZ));
-    if (sym != 0) {
+    if (sym != NULL) {
         return s->disas_strtab + sym->st_name;
     }