summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 7776aa631d..ed8dc5228c 100644
--- a/sv.c
+++ b/sv.c
@@ -1581,7 +1581,7 @@ register SV *sstr;
*/
if (SvTEMP(sstr)) { /* slated for free anyway? */
- if (SvPOK(dstr)) {
+ if (SvPVX(dstr)) { /* we know that dtype >= SVt_PV */
(void)SvOOK_off(dstr);
Safefree(SvPVX(dstr));
}