]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-restore.c
don't pass NULL as second parameter to gzerror
[notmuch] / notmuch-restore.c
index 4b509d95ba003dd4342d2bd74ed47c67d4bca6d8..9a8b7fb59b8c50e35cbf6c32fd6dc375c3dbf465 100644 (file)
@@ -450,7 +450,7 @@ notmuch_restore_command (notmuch_config_t *config, int argc, char *argv[])
 
     if (input && gzclose_r (input)) {
        fprintf (stderr, "Error closing %s: %s\n",
-                name_for_error, gzerror (input, NULL));
+                name_for_error, gzerror_str (input));
        ret = EXIT_FAILURE;
     }