Storable: crash on ref to blessed tied array
authorDavid Mitchell <davem@iabyn.com>
Thu, 21 Nov 2013 15:53:41 +0000 (15:53 +0000)
committerDavid Mitchell <davem@iabyn.com>
Thu, 21 Nov 2013 17:12:42 +0000 (17:12 +0000)
commit007ee6b5c9390c9b68f5078d641b65ae38744242
tree1d7a032855d20083866a5dd864d73ea1e62f726a
parent997ca471cc5e30128a8804a59833b5cca3e4b433
Storable: crash on ref to blessed tied array

When Storable was retrieving a tied array, if that array needed blessing
into a class, the code was passing the name of the class, rather than the
HV of the stash, to sv_bless(), causing a crash.

(Discovered due to a gcc "var set but not used" warning).

I also updated a few source code comments with s/SX_FOO/SX_TIED_FOO/.
dist/Storable/Storable.xs
dist/Storable/t/tied.t