summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-02-19 21:03:44 -0700
committerKarl Williamson <khw@cpan.org>2015-02-19 23:05:59 -0700
commitebcacf7ba4dee671f52a58cf981f1fec3b637a39 (patch)
treea482e45edd9023351f839fd52fb14d6205072c0c
parent06ae27223f8f0af5633beb82c8be873ecadaaae3 (diff)
downloadperl-ebcacf7ba4dee671f52a58cf981f1fec3b637a39.tar.gz
regcomp.c: Add assertion
-rw-r--r--regcomp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/regcomp.c b/regcomp.c
index 6052dc3d32..68f1c49182 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -15472,6 +15472,8 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth,
}
if (ret_invlist) {
+ assert(cp_list);
+
*ret_invlist = cp_list;
SvREFCNT_dec(swash);