]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Revert addition of assert.
authorJoerg Sonnenberger <joerg@bec.de>
Tue, 1 Aug 2017 22:07:38 +0000 (00:07 +0200)
committerJoerg Sonnenberger <joerg@bec.de>
Tue, 1 Aug 2017 22:07:38 +0000 (00:07 +0200)
libarchive/archive_string.c

index 392cc1103f36dd56651b8b7406f3521b504a19b1..554533ecb91bd0266602c26a823b391d03c946a5 100644 (file)
@@ -36,7 +36,6 @@ __FBSDID("$FreeBSD: head/lib/libarchive/archive_string.c 201095 2009-12-28 02:33
  * without incurring additional memory allocations.
  */
 
-#include <assert.h>
 #ifdef HAVE_ERRNO_H
 #include <errno.h>
 #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;