diff options
author | Toomas Soome <tsoome@me.com> | 2019-02-11 22:45:35 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-02-12 17:49:21 +0200 |
commit | e83359656fe4880d77df4da075573820c2a7adc0 (patch) | |
tree | d6f0a14a061118af99bf1688907ba5fae3b24bb6 /usr/src/common/ctf/ctf_create.c | |
parent | b83d2fbf46ff51c4409d2bf8ed4c483ef21f456f (diff) | |
download | illumos-joyent-e83359656fe4880d77df4da075573820c2a7adc0.tar.gz |
10393 ctf: NULL pointer errors
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/common/ctf/ctf_create.c')
-rw-r--r-- | usr/src/common/ctf/ctf_create.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/common/ctf/ctf_create.c b/usr/src/common/ctf/ctf_create.c index c0a4b15055..355165eb12 100644 --- a/usr/src/common/ctf/ctf_create.c +++ b/usr/src/common/ctf/ctf_create.c @@ -1986,7 +1986,7 @@ ctf_add_function(ctf_file_t *fp, ulong_t idx, const ctf_funcinfo_t *fip, if (ctf_dsd_lookup(fp, idx) != NULL) return (ctf_set_errno(fp, ECTF_CONFLICT)); - if (symbase == NULL) + if (symbase == (uintptr_t)NULL) return (ctf_set_errno(fp, ECTF_STRTAB)); if (idx > fp->ctf_nsyms) @@ -2053,7 +2053,7 @@ ctf_add_object(ctf_file_t *fp, ulong_t idx, ctf_id_t type) if (ctf_dsd_lookup(fp, idx) != NULL) return (ctf_set_errno(fp, ECTF_CONFLICT)); - if (symbase == NULL) + if (symbase == (uintptr_t)NULL) return (ctf_set_errno(fp, ECTF_STRTAB)); if (idx > fp->ctf_nsyms) |