]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix p == null copy paste error 2812/head
authorAZero13 <gfunni234@gmail.com>
Wed, 17 Dec 2025 02:37:16 +0000 (21:37 -0500)
committerAZero13 <gfunni234@gmail.com>
Wed, 17 Dec 2025 02:37:16 +0000 (21:37 -0500)
tar/write.c

index 9e6c97b580b7304b5c7fbea8f9ed7d64ec836c99..4369bce7fa09c641f94d7796bf666d207b05ba01 100644 (file)
@@ -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