X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/1969953cea0d27525c0c0b227d2021bd99952969..693ec82b8e663fa43e54751b5157c5612d843092:/argv.c 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 * @@ -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)