diff options
-rw-r--r-- | argv.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |