From: AZero13 Date: Wed, 17 Dec 2025 02:37:16 +0000 (-0500) Subject: Fix p == null copy paste error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=784b778f3b5581853b5a77fb98d331962793ae37;p=thirdparty%2Flibarchive.git Fix p == null copy paste error --- diff --git a/tar/write.c b/tar/write.c index 9e6c97b58..4369bce7f 100644 --- a/tar/write.c +++ b/tar/write.c @@ -190,7 +190,6 @@ set_reader_options(struct bsdtar *bsdtar, struct archive *a) char *p; /* Set default write options. */ if ((p = malloc(module_len + opt_len)) == NULL) - if (p == NULL) lafe_errc(1, errno, "Out of memory"); /* Prepend magic code to ignore options for * a format or filters which are not added to