Trim dead code in do_kv.
authorEric Brine <ikegami@adaelis.com>
Thu, 25 Aug 2011 03:10:43 +0000 (20:10 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 25 Aug 2011 03:10:43 +0000 (20:10 -0700)
commit73ff03e80797f5abfbbb570cc398cc59078bc6d5
tree61902a0fbb2baaa95013946e08cfb2c07792acc8
parent8fa77384bc1e6824a75665f244884b26753af224
Trim dead code in do_kv.

A small piece of code in do_kv has three bugs:

- TARG could have been returned as an lvalue, so its refcount
  could be greater than 1, resulting in data getting clobbered.
  (See RT#20933 for previously fixed occurrence of this bug).

- LvTARG is refcounted, so it's buggy to just NULL it.

- TARG is returned without being initialised.

The first two bugs disappeared recently when we stopped putting
the lvalues in TARG for that op. The third remains.

However, it seems that code is never called. It can only be
called by putting NULL (not undef) on the Perl stack. I don't
see how that's possible here. The test suite never reaches that
code, so it seems it's just dead code.
doop.c