summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-05-30 13:36:28 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-30 13:36:28 +0000
commit516a5887ee93ac51c15492c01bb2e52bafd5bfaf (patch)
tree2edd49fae5fcdc2d692fc0d6fe4779a740171b58 /doop.c
parenta2e20b18d842b4285c1fb6554e5ff55510293193 (diff)
downloadperl-516a5887ee93ac51c15492c01bb2e52bafd5bfaf.tar.gz
Medley of -Wall cleanups from Michael Schwen, Hugo van der Sanden,
and Abhijit Menon-Sen. p4raw-id: //depot/perl@10321
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/doop.c b/doop.c
index a5c1ce3a7c..14495b1dd4 100644
--- a/doop.c
+++ b/doop.c
@@ -646,9 +646,10 @@ Perl_do_join(pTHX_ register SV *sv, SV *del, register SV **mark, register SV **s
register I32 items = sp - mark;
register STRLEN len;
STRLEN delimlen;
- register char *delim = SvPV(del, delimlen);
STRLEN tmplen;
+ (void) SvPV(del, delimlen); /* get the delimlen */
+
mark++;
len = (items > 0 ? (delimlen * (items - 1) ) : 0);
(void)SvUPGRADE(sv, SVt_PV);