summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--argv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/argv.c b/argv.c
index aa47ac64..61f9e06b 100644
--- a/argv.c
+++ b/argv.c
@@ -293,6 +293,9 @@ mdoc_argv_free(struct mdoc_arg *p)
{
int i, j;
+ if (NULL == p)
+ return;
+
if (p->refcnt) {
--(p->refcnt);
if (p->refcnt)