Skip to content

Commit

Permalink
Check success of store().
Browse files Browse the repository at this point in the history
Coverity CID 118699.
  • Loading branch information
jhi committed Jun 27, 2015
1 parent d1992db commit 8cb8f89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dist/Storable/Storable.xs
Expand Up @@ -2658,7 +2658,9 @@ static int store_hash(pTHX_ stcxt_t *cxt, HV *hv)
TRACEME(("(#%d) key '%s'", i, key));
}
if (flags & SHV_K_ISSV) {
store(aTHX_ cxt, key_sv);
int ret;
if ((ret = store(aTHX_ cxt, key_sv)))
goto out;
} else {
WLEN(len);
if (len)
Expand Down

0 comments on commit 8cb8f89

Please sign in to comment.