aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/argv.c
diff options
context:
space:
mode:
Diffstat (limited to 'argv.c')
-rw-r--r--argv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/argv.c b/argv.c
index 9cd53503..9499bd85 100644
--- a/argv.c
+++ b/argv.c
@@ -1,4 +1,4 @@
-/* $Id: argv.c,v 1.40 2009/03/08 12:40:27 kristaps Exp $ */
+/* $Id: argv.c,v 1.41 2009/03/08 12:46:38 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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)