summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 13:01:35 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-08 13:01:35 +0000
commita15e79703c785a35eaafcfd8b9db71cba1361f24 (patch)
tree8b47c6270784d0367886d164a55df124b15656f9
parent764e05c60c54c1e2184996ce773ca5725d991416 (diff)
downloadmandoc-a15e79703c785a35eaafcfd8b9db71cba1361f24.tar.gz
Memory-corruption fix.
-rw-r--r--action.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/action.c b/action.c
index 02c71b53..46af7a03 100644
--- a/action.c
+++ b/action.c
@@ -241,10 +241,8 @@ post_ex(struct mdoc *mdoc)
mdoc_argnames[MDOC_Std],
mdoc->meta.name);
- assert(1 == mdoc->last->args->argv[0].sz);
-
- mdoc->last->args->argv[0].sz = 1;
mdoc->last->args->argv[0].value = xcalloc(1, sizeof(char *));
+ mdoc->last->args->argv[0].sz = 1;
mdoc->last->args->argv[0].value[0] = xstrdup(mdoc->meta.name);
return(1);
}