From: Steve Peters Date: Mon, 10 Jul 2006 18:26:25 +0000 (+0000) Subject: Fix another empty if-statement warning X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0b7042f97f8d0dfccfa892ce74972b0cb267548e;p=p5sagit%2Fp5-mst-13.2.git Fix another empty if-statement warning p4raw-id: //depot/perl@28535 --- diff --git a/sv.c b/sv.c index d2eed0d..fa576b2 100644 --- a/sv.c +++ b/sv.c @@ -3935,8 +3935,10 @@ Perl_sv_usepvn_flags(pTHX_ SV *sv, char *ptr, STRLEN len, U32 flags) if (SvPVX_const(sv)) SvPV_free(sv); +#ifdef DEBUGGING if (flags & SV_HAS_TRAILING_NUL) assert(ptr[len] == '\0'); +#endif allocate = (flags & SV_HAS_TRAILING_NUL) ? len + 1: PERL_STRLEN_ROUNDUP(len + 1);