git: 4217cc09bdbd - stable/13 - libarchive: fix null format string error in tests (unbreaks gcc13 build)

From: Martin Matuska <mm_at_FreeBSD.org>
Date: Sat, 04 May 2024 12:37:41 UTC
The branch stable/13 has been updated by mm:

URL: https://cgit.FreeBSD.org/src/commit/?id=4217cc09bdbd0649d28ad8e0c8899e140085d05d

commit 4217cc09bdbd0649d28ad8e0c8899e140085d05d
Author:     Martin Matuska <mm@FreeBSD.org>
AuthorDate: 2024-04-17 07:33:13 +0000
Commit:     Martin Matuska <mm@FreeBSD.org>
CommitDate: 2024-05-04 11:53:07 +0000

    libarchive: fix null format string error in tests (unbreaks gcc13 build)
    
    Obtained from:  libarchive (d43c39247)
    
    (cherry picked from commit 701d0666c03dacba9b73d91dff2a6140e157bdc4)
---
 contrib/libarchive/libarchive/test/test_compat_lzip.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/contrib/libarchive/libarchive/test/test_compat_lzip.c b/contrib/libarchive/libarchive/test/test_compat_lzip.c
index d3b8b118322b..1420e5bb9ac0 100644
--- a/contrib/libarchive/libarchive/test/test_compat_lzip.c
+++ b/contrib/libarchive/libarchive/test/test_compat_lzip.c
@@ -195,7 +195,6 @@ compat_lzip_4(const char *name)
 	assertEqualString("test.bin", archive_entry_pathname(ae));
 
 	/* Verify the end-of-archive. */
-	archive_set_error(a, ARCHIVE_OK, NULL);
 	assertEqualIntA(a, ARCHIVE_EOF, archive_read_next_header(a, &ae));
 
 	/* Verify that the format detection worked. */