summaryrefslogtreecommitdiff
path: root/usr/src/lib/libproc/amd64/Pisadep.c
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-22 09:10:58 +0200
committerToomas Soome <tsoome@me.com>2019-07-03 23:33:33 +0300
commitc75682cd39b9b3d382ce1b01fef06a84ca7ea0a9 (patch)
tree8393ad19ffa3f09f192d47d0e6a1ae9344649996 /usr/src/lib/libproc/amd64/Pisadep.c
parent6e6545bfaed3bab9ce836ee82d1abd8f2edba89a (diff)
downloadillumos-joyent-c75682cd39b9b3d382ce1b01fef06a84ca7ea0a9.tar.gz
11133 libproc: NULL pointer errors
Reviewed by: John Levon <john.levon@joyent.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/lib/libproc/amd64/Pisadep.c')
-rw-r--r--usr/src/lib/libproc/amd64/Pisadep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/lib/libproc/amd64/Pisadep.c b/usr/src/lib/libproc/amd64/Pisadep.c
index 95064ae33a..360997dab3 100644
--- a/usr/src/lib/libproc/amd64/Pisadep.c
+++ b/usr/src/lib/libproc/amd64/Pisadep.c
@@ -353,9 +353,9 @@ Pstack_iter32(struct ps_prochandle *P, const prgregset_t regs,
if (find_uclink(&ucl, pfp + sizeof (sf_t)))
uc_addr = pfp + sizeof (sf_t);
else
- uc_addr = NULL;
+ uc_addr = (uintptr_t)NULL;
- if (uc_addr != NULL &&
+ if (uc_addr != (uintptr_t)NULL &&
Pread(P, &uc, sizeof (uc), uc_addr) == sizeof (uc)) {
ucontext_32_to_prgregs(&uc, gregs);
fp = gregs[R_FP];