diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-05-29 15:14:34 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-05-29 15:14:34 -0400 |
commit | 9adb283733962776a24565b5e2bf9bdfb135b968 (patch) | |
tree | 652ebb2ad106502cb252a0a775dad519a6debc90 /dump.c | |
parent | ea4b7f3223263018af6a5122e4e3800eddeb92d6 (diff) | |
download | perl-9adb283733962776a24565b5e2bf9bdfb135b968.tar.gz |
We cannot assert(sv) since sv can be validly null
(see the top of the function), but we can test it.
Diffstat (limited to 'dump.c')
-rw-r--r-- | dump.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -471,8 +471,7 @@ Perl_sv_peek(pTHX_ SV *sv) finish: while (unref--) sv_catpv(t, ")"); - /* XXX when is sv ever NULL? */ - if (TAINTING_get && SvTAINTED(sv)) + if (TAINTING_get && sv && SvTAINTED(sv)) sv_catpv(t, " [tainted]"); return SvPV_nolen(t); } |