0
0
mirror of https://github.com/libarchive/libarchive.git synced 2026-01-18 17:11:25 +01:00

Fix p == null copy paste error

This commit is contained in:
AZero13
2025-12-16 21:37:16 -05:00
parent b51e59bcfb
commit 784b778f3b

View 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