From 693ec82b8e663fa43e54751b5157c5612d843092 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 8 Mar 2009 12:46:38 +0000 Subject: [PATCH] Fixed null-pointer dereference. --- argv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.47.1