summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2015-07-16 08:08:19 +0100
committerTony Cook <tony@develop-help.com>2015-07-22 15:25:02 +1000
commit86f4502880c5cbc7a5ec1510ab05a413bfb40e03 (patch)
tree6e5ddd337290d64808f8fca999bb4c3b97f0f96b /doop.c
parentc7a622b32220ef59969124212598b6848bcaa247 (diff)
downloadperl-86f4502880c5cbc7a5ec1510ab05a413bfb40e03.tar.gz
Merge declaration and initialisation of local variable
Commit 2b32fed8 removed the PUTBACK/SPAGAIN around hv_iterval and Perl_sv_setpvf, but didn't take the opportunity to merge the initialisation with the declaration now that there's no code between them.
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/doop.c b/doop.c
index 22e614a74e..19fe3105d5 100644
--- a/doop.c
+++ b/doop.c
@@ -1263,8 +1263,7 @@ Perl_do_kv(pTHX)
XPUSHs(sv);
}
if (dovalues) {
- SV *tmpstr;
- tmpstr = hv_iterval(keys,entry);
+ SV *tmpstr = hv_iterval(keys,entry);
DEBUG_H(Perl_sv_setpvf(aTHX_ tmpstr, "%lu%%%d=%lu",
(unsigned long)HeHASH(entry),
(int)HvMAX(keys)+1,