summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/doop.c b/doop.c
index 14495b1dd4..9dff1b76b0 100644
--- a/doop.c
+++ b/doop.c
@@ -648,7 +648,8 @@ Perl_do_join(pTHX_ register SV *sv, SV *del, register SV **mark, register SV **s
STRLEN delimlen;
STRLEN tmplen;
- (void) SvPV(del, delimlen); /* get the delimlen */
+ (void) SvPV(del, delimlen); /* stringify and get the delimlen */
+ /* SvCUR assumes it's SvPOK() and woe betide you if it's not. */
mark++;
len = (items > 0 ? (delimlen * (items - 1) ) : 0);