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:
parent
e21f0e251c
commit
b503536d57
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue