diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-30 05:58:36 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-10-30 05:58:36 +0000 |
commit | e46c16c46ad18d40f21b251bf8995387efa68796 (patch) | |
tree | 7113f6e5fd33a5d7a1c6d20a153ccac74342f042 /mdoc_argv.c | |
parent | e7cea9dff6d8ebb34cdba4486eef0fcc6ac84160 (diff) | |
download | mandoc-e46c16c46ad18d40f21b251bf8995387efa68796.tar.gz |
libmdoc and libman now using non-recoverable allocations (simpler code).
Diffstat (limited to 'mdoc_argv.c')
-rw-r--r-- | mdoc_argv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_argv.c b/mdoc_argv.c index d7f3ca34..726a3f3f 100644 --- a/mdoc_argv.c +++ b/mdoc_argv.c @@ -268,7 +268,7 @@ mdoc_argv(struct mdoc *m, int line, int tok, return(ARGV_ERROR); if (NULL == (arg = *v)) - arg = mandoc_calloc(1, sizeof(struct mdoc_arg)); + arg = *v = mandoc_calloc(1, sizeof(struct mdoc_arg)); arg->argc++; arg->argv = mandoc_realloc |