libsaria: Fix iterator initializer bug

It was being initialized with '==' instead of '=', so the for loop was
always causing a segmentation fault.  This was caused by commit
180707a6c2

Author: Bryan Schumaker <bjschuma@gmail.com>
Date:   Thu Dec 29 22:08:53 2011 -0500

	libsaria: Remove redundant code

	Nothing needs to call this function anymore.  I also cleaned
	up the header file a bit.
This commit is contained in:
Bryan Schumaker 2011-12-31 11:14:26 -05:00
parent e21f0e251c
commit b503536d57
1 changed files with 1 additions and 2 deletions

View File

@ -36,8 +36,7 @@ namespace libsaria
void library::update_path(string dir)
{
list<LibraryPath>::iterator it;
for (it == path_list.begin(); it != path_list.end(); it++) {
it->get_path();
for (it = path_list.begin(); it != path_list.end(); it++) {
if (it->get_path() == dir)
do_update(it);
}