File 0001-Fix-incorrect-item-removal-in-ptrList.patch of Package libSNL
From c01496f387389dade638b9ca9617622fb0344392 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Sun, 17 Nov 2024 07:50:16 +0100
Subject: [PATCH 1/5] Fix incorrect item removal in ptrList
---
trunk/src/ptrList.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/trunk/src/ptrList.h b/trunk/src/ptrList.h
index 80801f1..09d6cd7 100644
--- a/trunk/src/ptrList.h
+++ b/trunk/src/ptrList.h
@@ -739,10 +739,11 @@ template < class T > void ptrList<T>::remove ( T* ptr )
delete item;
}
- if ( cItem )
+ if ( cItem ) {
if ( ! cItem -> prev() ) fItem = cItem;
- else
+ } else {
fItem = 0;
+ }
}
}
--
2.47.0