X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=mp.c;h=56c16e31d7baf64fbf7c415b015b3de2967b6a38;hp=bade05bcf866103b5bd794af4ae1ae6ce8cb5b72;hb=09600fc5f69a06dd9dfa6e7363894c473a08b3be;hpb=f4019242252bf8e7594a72efdac6214a5abd4364 diff --git a/mp.c b/mp.c index bade05bc..56c16e31 100644 --- a/mp.c +++ b/mp.c @@ -491,10 +491,10 @@ int mp_init(const char *definition, int nbytes, struct mp_context **result, struct mp_context *ctx; struct yy_buffer_state *buffer_state; + *result = NULL; if (!definition || nbytes == 0) { /* dummy mood */ if (errmsg) *errmsg = NULL; - *result = NULL; return 0; } ctx = para_calloc(sizeof(*ctx));