summaryrefslogtreecommitdiffstats
path: root/mdoc_argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-21 09:36:41 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-21 09:36:41 +0000
commitb6e889d3ea020670f2274dea31ac9b1bd663d6df (patch)
treec1434661a6d9b29f5ab3b068cba3c12cefe41b88 /mdoc_argv.c
parentdcec291da5fa3097e220f0879eab87ad15cb741e (diff)
downloadmandoc-b6e889d3ea020670f2274dea31ac9b1bd663d6df.tar.gz
Nit-picking assign in decl.
Diffstat (limited to 'mdoc_argv.c')
-rw-r--r--mdoc_argv.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdoc_argv.c b/mdoc_argv.c
index e24ac739..5c3dc862 100644
--- a/mdoc_argv.c
+++ b/mdoc_argv.c
@@ -313,9 +313,11 @@ mdoc_argv_free(struct mdoc_arg *p)
void
mdoc_argn_free(struct mdoc_arg *p, int iarg)
{
- struct mdoc_argv *arg = &p->argv[iarg]; /* FIXME: decl/assign */
+ struct mdoc_argv *arg;
int j;
+ arg = &p->argv[iarg];
+
if (arg->sz && arg->value) {
for (j = (int)arg->sz - 1; j >= 0; j--)
free(arg->value[j]);