This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
347f512
)
Fix possible undefined behaviour introduced by b9e00b79e4947c49d5520633f9efd2a8e39ec14f
author
Vincent Pit
<perl@profvince.com>
Mon, 26 Apr 2010 19:51:42 +0000
(21:51 +0200)
committer
Vincent Pit
<perl@profvince.com>
Mon, 26 Apr 2010 19:51:42 +0000
(21:51 +0200)
sv.c
patch
|
blob
|
blame
|
history
diff --git
a/sv.c
b/sv.c
index
8179937
..
e7d67a5
100644
(file)
--- a/
sv.c
+++ b/
sv.c
@@
-11586,7
+11586,8
@@
Perl_ss_dup(pTHX_ PerlInterpreter *proto_perl, CLONE_PARAMS* param)
gp = (GP*)POPPTR(ss,ix);
TOPPTR(nss,ix) = gp = gp_dup(gp, param);
(void)GpREFCNT_inc(gp);
- TOPINT(nss,ix) = POPINT(ss,ix);
+ i = POPINT(ss,ix);
+ TOPINT(nss,ix) = i;
break;
case SAVEt_FREEOP:
ptr = POPPTR(ss,ix);