From: Joerg Sonnenberger Date: Tue, 1 Aug 2017 22:07:38 +0000 (+0200) Subject: Revert addition of assert. X-Git-Tag: v3.3.3~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8c7f2e5b6ccc881f38d58fe38bb564dfd1b26b3;p=thirdparty%2Flibarchive.git Revert addition of assert. --- diff --git a/libarchive/archive_string.c b/libarchive/archive_string.c index 392cc1103..554533ecb 100644 --- a/libarchive/archive_string.c +++ b/libarchive/archive_string.c @@ -36,7 +36,6 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_string.c 201095 2009-12-28 02:33 * without incurring additional memory allocations. */ -#include #ifdef HAVE_ERRNO_H #include #endif @@ -215,7 +214,6 @@ archive_wstring_append(struct archive_wstring *as, const wchar_t *p, size_t s) { if (archive_wstring_ensure(as, as->length + s + 1) == NULL) return (NULL); - assert(p != NULL); if (s) wmemmove(as->s + as->length, p, s); as->length += s;