summaryrefslogtreecommitdiffstatshomepage
path: root/argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-23 14:31:58 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-23 14:31:58 +0000
commit9e1962924d277421ea2bce83eed6738227fc0b54 (patch)
treeb3bdcfb6638b011ad4651fe70e926f6206929720 /argv.c
parenteae8f4ff2cd357d92c5e6aa901cf82cc4d344470 (diff)
downloadmandoc-9e1962924d277421ea2bce83eed6738227fc0b54.tar.gz
mandoc-9e1962924d277421ea2bce83eed6738227fc0b54.tar.zst
mandoc-9e1962924d277421ea2bce83eed6738227fc0b54.zip
Linux fixes.
Diffstat (limited to 'argv.c')
-rw-r--r--argv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/argv.c b/argv.c
index db5b7ea4..bf2d3fc6 100644
--- a/argv.c
+++ b/argv.c
@@ -1,4 +1,4 @@
-/* $Id: argv.c,v 1.56 2009/03/23 14:22:11 kristaps Exp $ */
+/* $Id: argv.c,v 1.57 2009/03/23 14:31:58 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -765,8 +765,8 @@ argv_multi(struct mdoc *mdoc, int line,
if (0 == v->sz % MULTI_STEP)
v->value = xrealloc(v->value,
(v->sz + MULTI_STEP) * sizeof(char *));
-
- v->value[(int)v->sz] = xstrdup(p);
+ if (NULL == (v->value[(int)v->sz] = strdup(p)))
+ err(1, "strdup");
}
if (v->sz)