]> git.notmuchmail.org Git - notmuch/blobdiff - util/zlib-extra.c
don't pass NULL as second parameter to gzerror
[notmuch] / util / zlib-extra.c
index f691cccf2a336e5f2785a5daf8da7f8cc0612a25..623f6d62d1e4fc13331e9c5a56d8b005287df0bd 100644 (file)
@@ -80,7 +80,7 @@ const char *
 gz_error_string (util_status_t status, gzFile file)
 {
     if (status == UTIL_GZERROR)
-       return gzerror (file, NULL);
+       return gzerror_str (file);
     else
        return util_error_string (status);
 }