[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Traverso-commit] traverso/src/common APILinkedList.h
From: |
Remon Sijrier |
Subject: |
[Traverso-commit] traverso/src/common APILinkedList.h |
Date: |
Sat, 24 Nov 2007 22:49:22 +0000 |
CVSROOT: /sources/traverso
Module name: traverso
Changes by: Remon Sijrier <r_sijrier> 07/11/24 22:49:22
Modified files:
src/common : APILinkedList.h
Log message:
* do not try to remove a node if there is no head node (== empty list)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/traverso/src/common/APILinkedList.h?cvsroot=traverso&r1=1.2&r2=1.3
Patches:
Index: APILinkedList.h
===================================================================
RCS file: /sources/traverso/traverso/src/common/APILinkedList.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- APILinkedList.h 19 Nov 2007 11:18:53 -0000 1.2
+++ APILinkedList.h 24 Nov 2007 22:49:22 -0000 1.3
@@ -103,6 +103,11 @@
APILinkedListNode *q,*r;
q = m_head;
+
+ if (!q) {
+ return 0;
+ }
+
if(q == item) {
m_head = q->next;
m_size--;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Traverso-commit] traverso/src/common APILinkedList.h,
Remon Sijrier <=