aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-04-02 13:32:12 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-04-02 13:32:12 -0400
commit4ca5791ed67b9834bdbd010206b30373e4705e9b (patch)
tree3dd2cdb2ef9e870e84d23ad0b6a0623893b8bba6 /lib
parent9b4036377c52200c6488c98180d69a0e63321f97 (diff)
fix: Missed ! on null pointer check
Diffstat (limited to 'lib')
-rw-r--r--lib/Net.Compression/vnlib_compress/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Net.Compression/vnlib_compress/util.h b/lib/Net.Compression/vnlib_compress/util.h
index 16afacf..c29de4b 100644
--- a/lib/Net.Compression/vnlib_compress/util.h
+++ b/lib/Net.Compression/vnlib_compress/util.h
@@ -73,7 +73,7 @@
#define assert(x) {}
#endif
-#define CHECK_NULL_PTR(ptr) if(ptr) return ERR_INVALID_PTR;
+#define CHECK_NULL_PTR(ptr) if(!ptr) return ERR_INVALID_PTR;
#ifdef NATIVE_HEAP_API /* Defined in the NativeHeapApi */
/*