]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Re-instate ASSERTS in circList.h
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:54 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:54 +0000 (11:23 -0700)
open-vm-tools/lib/include/circList.h

index 383be8fce8a707fde9be4971f36b4f6b190944f5..4cecfe090fc0d2f860195ceda6b9785b2a5fd651 100644 (file)
@@ -267,6 +267,9 @@ CircList_DeleteItem(ListItem *p,         // IN
 {
    ListItem *next;
 
+   ASSERT(p != NULL);
+   ASSERT(headp != NULL);
+
    next = p->next;
    if (p == next) {
       *headp = NULL;