Permalink
Browse files

Ensure ends array is initialised.

Problem noted by Daisuke Maki.  I'm not sure how that can happen so let's be
defensive.
  • Loading branch information...
1 parent 1716d03 commit 6afa40f1076bc260d64301e8cadb47151264d05b @pjcj committed Oct 15, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 Cover.xs
View
@@ -1421,7 +1421,8 @@ get_ends()
PREINIT:
dMY_CXT;
CODE:
- RETVAL = MY_CXT.ends;
+ if (!MY_CXT.ends) MY_CXT.ends = newAV(); /* TODO: how? */
+ RETVAL = MY_CXT.ends;
OUTPUT:
RETVAL

0 comments on commit 6afa40f

Please sign in to comment.