In mp_init(), if mp_yyparse() fails, we return early without setting
the result pointer to NULL. This does not matter much because both
callers of mood.c pass in NULL, but still..
struct mp_context *ctx;
struct yy_buffer_state *buffer_state;
struct mp_context *ctx;
struct yy_buffer_state *buffer_state;
if (!definition || nbytes == 0) { /* dummy mood */
if (errmsg)
*errmsg = NULL;
if (!definition || nbytes == 0) { /* dummy mood */
if (errmsg)
*errmsg = NULL;
return 0;
}
ctx = para_calloc(sizeof(*ctx));
return 0;
}
ctx = para_calloc(sizeof(*ctx));