From 460cfeab2cb42e0ce4c1460d8b749b6aa2cbb1d3 Mon Sep 17 00:00:00 2001 From: localhorst Date: Sun, 7 Dec 2025 20:36:53 +0100 Subject: [PATCH] Iterator Invalidation Bug --- src/reHDD.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/reHDD.cpp b/src/reHDD.cpp index dc0bd63..364eb48 100644 --- a/src/reHDD.cpp +++ b/src/reHDD.cpp @@ -384,7 +384,6 @@ void reHDD::filterIgnoredDrives(list *plistDrives) Logger::logThis()->info("system drive found --> ignore this drive: " + it->getPath()); #endif it = plistDrives->erase(it); - it--; } } } @@ -437,7 +436,6 @@ void reHDD::filterIgnoredDrives(list *plistDrives) Logger::logThis()->info("same uuid found than in ignore file --> ignore this drive: " + it->getPath()); #endif it = plistDrives->erase(it); - it--; } } } @@ -459,7 +457,6 @@ void reHDD::filterInvalidDrives(list *plistDrives) Logger::logThis()->info("Drive reports zero capacity --> ignore this drive: " + it->getPath()); #endif it = plistDrives->erase(it); - it--; } } }