Coverity CID 1004: Fix NULL deref.
This commit is contained in:
parent
db0d71974c
commit
a195251302
@ -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
|
* Copyright (c) 1980, 1993
|
||||||
@ -34,7 +34,7 @@
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)prop.c 8.1 (Berkeley) 5/31/93";
|
static char sccsid[] = "@(#)prop.c 8.1 (Berkeley) 5/31/93";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -120,6 +120,8 @@ del_list(plr, head, op_sqr)
|
|||||||
break;
|
break;
|
||||||
else
|
else
|
||||||
last_op = op;
|
last_op = op;
|
||||||
|
if (op) == NULL)
|
||||||
|
return;
|
||||||
if (last_op == NULL)
|
if (last_op == NULL)
|
||||||
*head = op->next;
|
*head = op->next;
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user