From ac802bba054585b47b7591d38be14e4a09d9d318 Mon Sep 17 00:00:00 2001 From: gaoshutao <1779227906@qq.com> Date: Mon, 25 Aug 2025 15:38:00 +0800 Subject: [PATCH] fix:nullptr mode --- gzlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gzlib.c b/gzlib.c index baa3e79d4..4d6692d60 100644 --- a/gzlib.c +++ b/gzlib.c @@ -94,7 +94,7 @@ local gzFile gz_open(const void *path, int fd, const char *mode) { #endif /* check input */ - if (path == NULL) + if (path == NULL || mode == NULL) return NULL; /* allocate gzFile structure to return */