diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-07-31 21:16:51 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-07-31 21:16:51 +0000 |
commit | 660f11be541813be5f09fbaf44d8e7c6d5a5bbfe (patch) | |
tree | 1d133bdfc69d11fe81e769825adf3f680ee2f91e /elf_ops.h | |
parent | 2e29bd04786003561303dcad940b38afe790fb9b (diff) |
Fix Sparse warnings: "Using plain integer as NULL pointer"
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'elf_ops.h')
-rw-r--r-- | elf_ops.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |