summaryrefslogtreecommitdiffstats
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
commitaab08c4fa94c384767d1d5da68aa283ced4004bd (patch)
treea06be88bc8b1ef4f874b6c5420216b170c24bdf5 /argv.c
parentdc4e5ca1c9fd9bd34e243dcdb884af02102c9389 (diff)
downloadmandoc-aab08c4fa94c384767d1d5da68aa283ced4004bd.tar.gz
Linux fixes.
Diffstat (limited to 'argv.c')
-rw-r--r--argv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/argv.c b/argv.c
index 3d8519c7..b73787dc 100644
--- a/argv.c
+++ b/argv.c
@@ -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)