From 4ca5791ed67b9834bdbd010206b30373e4705e9b Mon Sep 17 00:00:00 2001 From: vnugent Date: Tue, 2 Apr 2024 13:32:12 -0400 Subject: fix: Missed ! on null pointer check --- lib/Net.Compression/vnlib_compress/util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 */ /* -- cgit