diff options
author | Toomas Soome <tsoome@me.com> | 2019-01-22 09:10:58 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-07-03 23:33:33 +0300 |
commit | c75682cd39b9b3d382ce1b01fef06a84ca7ea0a9 (patch) | |
tree | 8393ad19ffa3f09f192d47d0e6a1ae9344649996 /usr/src/lib/libproc/amd64/Pisadep.c | |
parent | 6e6545bfaed3bab9ce836ee82d1abd8f2edba89a (diff) | |
download | illumos-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.c | 4 |
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]; |