]> git.proxmox.com Git - mirror_qemu.git/blobdiff - bsd-user/elfload.c
More NULL pointer fixes
[mirror_qemu.git] / bsd-user / elfload.c
index ed25e8519e300cacd3069085b82498766bf60778..678f3e6ad9895af068b85ed46bcb34c809c09141 100644 (file)
@@ -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;
     }