Module Name: src Committed By: christos Date: Thu Jan 28 19:46:54 UTC 2021
Modified Files: src/external/bsd/libarchive/dist/tar: write.c Log Message: Don't try print an error message when there is none. To generate a diff of this commit: cvs rdiff -u -r1.2 -r1.3 src/external/bsd/libarchive/dist/tar/write.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/libarchive/dist/tar/write.c diff -u src/external/bsd/libarchive/dist/tar/write.c:1.2 src/external/bsd/libarchive/dist/tar/write.c:1.3 --- src/external/bsd/libarchive/dist/tar/write.c:1.2 Thu Jan 28 14:42:27 2021 +++ src/external/bsd/libarchive/dist/tar/write.c Thu Jan 28 14:46:54 2021 @@ -798,7 +798,9 @@ copy_file_data_block(struct bsdtar *bsdt progress += bytes_written; } if (r < ARCHIVE_WARN) { - lafe_warnc(archive_errno(a), "%s", archive_error_string(a)); + const char *s = archive_error_string(a); + if (s) + lafe_warnc(archive_errno(a), "%s", s); return (-1); } return (0);