summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-01-12 21:07:35 -0700
committerKarl Williamson <khw@cpan.org>2020-01-12 21:09:37 -0700
commit06414891b74a1b234a06dee90f7b600543878320 (patch)
tree3b6ab0d6fa4a63fdeb46b346ad5a2d830f42d6db /util.c
parenta0db70ff985b1db29355ef57bac4c5ef7a2883d5 (diff)
downloadperl-06414891b74a1b234a06dee90f7b600543878320.tar.gz
util.c: Rmv now always-true assertion
Commit 052d914306c3a13afe3fbeb17c8f1c986969f94c changed the type of this parameter to unsigned, so it is now never negative.
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/util.c b/util.c
index 4cafafd598..edd7dc53a5 100644
--- a/util.c
+++ b/util.c
@@ -1093,8 +1093,6 @@ Perl_savepvn(pTHX_ const char *pv, Size_t len)
char *newaddr;
PERL_UNUSED_CONTEXT;
- assert(len >= 0);
-
Newx(newaddr,len+1,char);
/* Give a meaning to NULL pointer mainly for the use in sv_magic() */
if (pv) {