git://www.ginac.de
/
ginac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
edf1ae4
)
Fix dangerous iterator use.
author
Richard Kreckel
<kreckel@ginac.de>
Tue, 18 May 2010 22:18:35 +0000
(
00:18
+0200)
committer
Richard Kreckel
<kreckel@ginac.de>
Tue, 18 May 2010 22:20:32 +0000
(
00:20
+0200)
This was detected by cppcheck and reported by Martin Ettl <ettl.martin@gmx.de>.
ginac/excompiler.cpp
patch
|
blob
|
history
diff --git
a/ginac/excompiler.cpp
b/ginac/excompiler.cpp
index 8d6670f1d48f28ee1593e86457a0c475dbabf87f..80e4dd1962aec57ef28d5f5efaf9b0168c6bde6a 100644
(file)
--- a/
ginac/excompiler.cpp
+++ b/
ginac/excompiler.cpp
@@
-172,7
+172,7
@@
public:
for (std::vector<filedesc>::iterator it = filelist.begin(); it != filelist.end();) {
if (it->name == filename) {
clean_up(it);
- filelist.erase(it);
+
it =
filelist.erase(it);
} else {
++it;
}