diff options
author | Tony Cook <tony@develop-help.com> | 2010-12-28 13:58:29 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2010-12-28 13:58:29 +1100 |
commit | c8834ab7edb2752b04c3eaf1825541bea43ab610 (patch) | |
tree | 23d64fe27a92a6ac98f3f6e807a629bbed7e2853 /pp_sys.c | |
parent | e8a07a125ebebaf06dc890127439c7461a063b35 (diff) | |
download | perl-c8834ab7edb2752b04c3eaf1825541bea43ab610.tar.gz |
avoid undefined behaviour in fetch and modify of SP from 0a0e3cc51e
pp_sys.c: In function ‘Perl_pp_send’:
pp_sys.c:1845: warning: operation on ‘sp’ may be undefined
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1842,7 +1842,8 @@ PP(pp_send) MAGIC * const mg = SvTIED_mg((const SV *)io, PERL_MAGIC_tiedscalar); if (mg) { if (MARK == SP - 1) { - mXPUSHi(sv_len(*SP)); + SV *sv = *SP; + mXPUSHi(sv_len(sv)); PUTBACK; } |