diff options
| author | Tomas Bzatek <tbzatek@redhat.com> | 2023-12-17 19:20:25 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@redhat.com> | 2023-12-17 19:20:25 +0100 |
| commit | 4e17c2527b106f1b493a3ac77c89858d14f834e2 (patch) | |
| tree | d8b8ad6c9160ac2b5b1918c3ab0ffc06aecdf5bf /libarchive/libarchive.c | |
| parent | 21434dedc4212121d4399f9880293f6cedf1cc52 (diff) | |
| download | tuxcmd-modules-4e17c2527b106f1b493a3ac77c89858d14f834e2.tar.xz | |
libarchive: Prevent overwriting GError
Diffstat (limited to 'libarchive/libarchive.c')
| -rw-r--r-- | libarchive/libarchive.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libarchive/libarchive.c b/libarchive/libarchive.c index 96b0956..26efa85 100644 --- a/libarchive/libarchive.c +++ b/libarchive/libarchive.c @@ -856,7 +856,8 @@ VFSCopyToLocal (struct TVFSGlobs *globs, const char *sSrcName, const char *sDstN if (! found && res) { fprintf (stderr, "(EE) VFSCopyToLocal: file not found in archive.\n"); - g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, "File not found in archive."); + if (error && *error == NULL) + g_set_error_literal (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND, "File not found in archive."); res = FALSE; } |
