Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
aspell
aspell-iterator-after-erase.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File aspell-iterator-after-erase.patch of Package aspell
--- lib/new_fmode.cpp +++ lib/new_fmode.cpp @@ -277,10 +277,13 @@ } void FilterMode::MagicString::remExtension(const String & ext) { - for ( Vector<String>::iterator it = fileExtensions.begin() ; - it != fileExtensions.end() ; it++ ) { + Vector<String>::iterator it = fileExtensions.begin(); + while (it != fileExtensions.end()) { if ( *it == ext ) { - fileExtensions.erase(it); + it = fileExtensions.erase(it); + } + else { + it++; } } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor