summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eqn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/eqn.c b/eqn.c
index 2e77c484..ebe0c3e2 100644
--- a/eqn.c
+++ b/eqn.c
@@ -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);