From 1a5127603d93125b75ee51c94200faf0b586ef32 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Wed, 19 May 2010 00:18:35 +0200 Subject: [PATCH] Fix dangerous iterator use. This was detected by cppcheck and reported by Martin Ettl . --- ginac/excompiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ginac/excompiler.cpp b/ginac/excompiler.cpp index 8d6670f1..80e4dd19 100644 --- a/ginac/excompiler.cpp +++ b/ginac/excompiler.cpp @@ -172,7 +172,7 @@ public: for (std::vector::iterator it = filelist.begin(); it != filelist.end();) { if (it->name == filename) { clean_up(it); - filelist.erase(it); + it = filelist.erase(it); } else { ++it; } -- 2.44.0