Parser: lily_new_state should create default options if NULL is passed.
@@ -86,6 +86,9 @@ typedef struct lily_rewind_state_
when it shouldn't. */
lily_state *lily_new_state(lily_options *options)
{
+ if (options == NULL)
+ options = lily_new_options();
+ else
/* "Prevent" caller from changing options during exec and fouling up the
internal state. */
lily_op_freeze(options);
