Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/dm CID 976256: Help coverity understand that when th...
details: https://anonhg.NetBSD.org/src/rev/465e4c441f5a
branches: trunk
changeset: 338106:465e4c441f5a
user: christos <christos%NetBSD.org@localhost>
date: Sun May 10 14:08:54 2015 +0000
description:
CID 976256: Help coverity understand that when the list is empty the head
is NULL.
diffstat:
sys/dev/dm/dm_ioctl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 70987dab5b3b -r 465e4c441f5a sys/dev/dm/dm_ioctl.c
--- a/sys/dev/dm/dm_ioctl.c Sun May 10 14:05:22 2015 +0000
+++ b/sys/dev/dm/dm_ioctl.c Sun May 10 14:08:54 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dm_ioctl.c,v 1.29 2014/10/02 21:29:44 justin Exp $ */
+/* $NetBSD: dm_ioctl.c,v 1.30 2015/05/10 14:08:54 christos Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -774,7 +774,7 @@
prop_dictionary_get_cstring(target_dict,
DM_TABLE_PARAMS, (char **) &str);
- if (SLIST_EMPTY(tbl))
+ if (SLIST_EMPTY(tbl) || last_table == NULL)
/* insert this table to head */
SLIST_INSERT_HEAD(tbl, table_en, next);
else
Home |
Main Index |
Thread Index |
Old Index