summaryrefslogtreecommitdiffstats
path: root/monop/prop.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2006-03-19 00:05:05 +0000
committerchristos <christos@NetBSD.org>2006-03-19 00:05:05 +0000
commit17cb827b5ade04dddb99819f73f3671efdf8a3a1 (patch)
treeed76d920ce5709aca9cbd1167de56693342b69ac /monop/prop.c
parent453445f50b578244b2df32ce60b9a30543a72612 (diff)
downloadbsdgames-darwin-17cb827b5ade04dddb99819f73f3671efdf8a3a1.tar.gz
bsdgames-darwin-17cb827b5ade04dddb99819f73f3671efdf8a3a1.tar.zst
bsdgames-darwin-17cb827b5ade04dddb99819f73f3671efdf8a3a1.zip
Coverity CID 1004: Fix NULL deref.
Diffstat (limited to 'monop/prop.c')
-rw-r--r--monop/prop.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/monop/prop.c b/monop/prop.c
index 2580a62d..4a5b2323 100644
--- a/monop/prop.c
+++ b/monop/prop.c
@@ -1,4 +1,4 @@
-/* $NetBSD: prop.c,v 1.9 2004/01/27 20:30:30 jsm Exp $ */
+/* $NetBSD: prop.c,v 1.10 2006/03/19 00:05:05 christos Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)prop.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: prop.c,v 1.9 2004/01/27 20:30:30 jsm Exp $");
+__RCSID("$NetBSD: prop.c,v 1.10 2006/03/19 00:05:05 christos Exp $");
#endif
#endif /* not lint */
@@ -120,6 +120,8 @@ del_list(plr, head, op_sqr)
break;
else
last_op = op;
+ if (op) == NULL)
+ return;
if (last_op == NULL)
*head = op->next;
else {