From 222f86c4732bb5dc3df174b33f5bb7605f2fbed7 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 17 Jul 2011 14:11:25 +0000 Subject: Remember to NULL-ify new keys/vals. --- eqn.c | 1 + 1 file changed, 1 insertion(+) (limited to 'eqn.c') diff --git a/eqn.c b/eqn.c index 9727f116..44a9c378 100644 --- a/eqn.c +++ b/eqn.c @@ -283,6 +283,7 @@ eqn_do_define(struct eqn_node *ep, int ln, int pos, const char **end) ep->defs = mandoc_realloc (ep->defs, ep->defsz * sizeof(struct eqn_def)); + ep->defs[i].key = ep->defs[i].val = NULL; } ep->defs[i].keysz = sz; -- cgit