diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-17 14:11:25 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-17 14:11:25 +0000 |
commit | 222f86c4732bb5dc3df174b33f5bb7605f2fbed7 (patch) | |
tree | 949074299ada41aca807eb91b97e858deac31a14 /eqn.c | |
parent | a726649696ac45144dc2ee6745a227b2c3d904ff (diff) | |
download | mandoc-222f86c4732bb5dc3df174b33f5bb7605f2fbed7.tar.gz |
Remember to NULL-ify new keys/vals.
Diffstat (limited to 'eqn.c')
-rw-r--r-- | eqn.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |