diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-23 14:31:58 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-23 14:31:58 +0000 |
commit | aab08c4fa94c384767d1d5da68aa283ced4004bd (patch) | |
tree | a06be88bc8b1ef4f874b6c5420216b170c24bdf5 /argv.c | |
parent | dc4e5ca1c9fd9bd34e243dcdb884af02102c9389 (diff) | |
download | mandoc-aab08c4fa94c384767d1d5da68aa283ced4004bd.tar.gz |
Linux fixes.
Diffstat (limited to 'argv.c')
-rw-r--r-- | argv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |