This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix precedence bug in the logic for PERL_PV_ESCAPE_NOCLEAR in
authorNicholas Clark <nick@ccl4.org>
Sat, 6 Oct 2007 15:29:44 +0000 (15:29 +0000)
committerNicholas Clark <nick@ccl4.org>
Sat, 6 Oct 2007 15:29:44 +0000 (15:29 +0000)
Perl_pv_escape()

p4raw-id: //depot/perl@32050

dump.c

diff --git a/dump.c b/dump.c
index ece587a..beeba77 100644 (file)
--- a/dump.c
+++ b/dump.c
@@ -219,7 +219,7 @@ Perl_pv_escape( pTHX_ SV *dsv, char const * const str,
     const char * const end = pv + count; /* end of string */
     octbuf[0] = esc;
 
-    if (!flags & PERL_PV_ESCAPE_NOCLEAR) {
+    if (!(flags & PERL_PV_ESCAPE_NOCLEAR)) {
            /* This won't alter the UTF-8 flag */
            sv_setpvn(dsv, "", 0);
     }