X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/75b610f7273e99110015abd22311fcb909e0abd3..b105c57e618a333c213bf981be42c1a5de1e213e:/eqn.c diff --git a/eqn.c b/eqn.c index 31e674d0..a64031b2 100644 --- a/eqn.c +++ b/eqn.c @@ -1,4 +1,4 @@ -/* $Id: eqn.c,v 1.55 2014/10/25 14:35:37 schwarze Exp $ */ +/* $Id: eqn.c,v 1.56 2014/10/25 15:06:30 schwarze Exp $ */ /* * Copyright (c) 2011, 2014 Kristaps Dzonsons * Copyright (c) 2014 Ingo Schwarze @@ -684,7 +684,9 @@ eqn_parse(struct eqn_node *ep, struct eqn_box *parent) char sym[64]; const char *start; - assert(NULL != parent); + assert(parent != NULL); + if (ep->data == NULL) + return(-1); next_tok: tok = eqn_tok_parse(ep, &p);