From: Kristaps Dzonsons Date: Sun, 8 Mar 2009 12:46:38 +0000 (+0000) Subject: Fixed null-pointer dereference. X-Git-Tag: VERSION_1_4_2~11 X-Git-Url: https://git.cameronkatri.com/mandoc.git/commitdiff_plain/693ec82b8e663fa43e54751b5157c5612d843092?ds=inline Fixed null-pointer dereference. --- 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)