=================================================================== RCS file: /cvs/mandoc/eqn.c,v retrieving revision 1.55 retrieving revision 1.56 diff -u -p -r1.55 -r1.56 --- mandoc/eqn.c 2014/10/25 14:35:37 1.55 +++ mandoc/eqn.c 2014/10/25 15:06:30 1.56 @@ -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);