summaryrefslogtreecommitdiff
path: root/Source/Library/Common/SimpleList.class.h
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-10-23 17:28:25 +0200
committerAlexis211 <alexis211@gmail.com>2009-10-23 17:28:25 +0200
commitf0556ed7f051fb101dc68752526696365bf79a11 (patch)
tree61345fbadbf76c6f12b36b48a9dfadd744f6cbbd /Source/Library/Common/SimpleList.class.h
parentdf179c18baab4b5d85a283924fb23dfee7ea7fdb (diff)
downloadMelon-f0556ed7f051fb101dc68752526696365bf79a11.tar.gz
Melon-f0556ed7f051fb101dc68752526696365bf79a11.zip
More work on syscalls and shell
Diffstat (limited to 'Source/Library/Common/SimpleList.class.h')
-rw-r--r--Source/Library/Common/SimpleList.class.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Library/Common/SimpleList.class.h b/Source/Library/Common/SimpleList.class.h
index 7b731db..8fcd834 100644
--- a/Source/Library/Common/SimpleList.class.h
+++ b/Source/Library/Common/SimpleList.class.h
@@ -48,6 +48,7 @@ class SimpleList {
}
SimpleList<T>* removeOnce(const T& value) {
+ if (this == 0) return 0;
if (value == m_value) return delThis();
for (SimpleList<T> *iter = this; iter->next() != 0; iter = iter->next()) {
if (iter->next()->v() == value) {