diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2004-05-03 18:52:39 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2004-05-03 18:52:39 +0000 |
commit | 9111c9c032460b8a1a0f3c5ec70114106769f656 (patch) | |
tree | 21f492fe49072348b4cd2d58101334f453dc45b2 /pp.c | |
parent | e3a8873fee48db53bdab7f38729038b2eab97f0b (diff) | |
download | perl-9111c9c032460b8a1a0f3c5ec70114106769f656.tar.gz |
[perl #29127] scalar delete of empty slice returned garbage
p4raw-id: //depot/perl@22775
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -3795,7 +3795,10 @@ PP(pp_delete) SP = ORIGMARK; else if (gimme == G_SCALAR) { MARK = ORIGMARK; - *++MARK = *SP; + if (SP > MARK) + *++MARK = *SP; + else + *++MARK = &PL_sv_undef; SP = MARK; } } |