]> granicus.if.org Git - zfs/commitdiff
Fix bad cast
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 10 Dec 2008 19:54:08 +0000 (11:54 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 10 Dec 2008 19:54:08 +0000 (11:54 -0800)
zfs/lib/libumem/getpcstack.c

index 8c3a47e19f4e959f0412716b9abd88fc7c8cf795..cc5e81a6899a059ae9dccdb191515966ed27f1ec 100644 (file)
@@ -148,7 +148,7 @@ getpcstack(uintptr_t *pcstack, int pcstack_limit, int check_signal)
                        break;
                else if (nextfp <= minfp || (tmp - base) >= size) {
 #ifndef UMEM_STANDALONE
-                       if (tmp == NULL || !on_altstack)
+                       if (tmp == 0 || !on_altstack)
                                break;
                        /*
                         * If we're on an alternate signal stack, try jumping