diff options
| author | David Bremner <david@tethera.net> | 2020-04-12 20:00:31 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2020-04-13 17:13:55 -0300 |
| commit | 2c1f783f5f4ad28d89f2e83d7253bae7bba98440 (patch) | |
| tree | 625c4cec17dbfe044c0bc78c8c96adf6221d63bb /notmuch-restore.c | |
| parent | d50f41c0fd0bbd2ca2b364f49deaea8be63dff3c (diff) | |
don't pass NULL as second parameter to gzerror
Although (as of 1.2.11) zlib checks this parameter before writing to
it, the docs don't promise to keep doing so, so be safe.
Diffstat (limited to 'notmuch-restore.c')
| -rw-r--r-- | notmuch-restore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/notmuch-restore.c b/notmuch-restore.c index 4b509d95..9a8b7fb5 100644 --- a/notmuch-restore.c +++ b/notmuch-restore.c @@ -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; } |
