From b56c5b7a6fa8330b09bb65f270b5a6a7281367d3 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 8 Mar 2008 15:24:31 +0000 Subject: gcc 4.2 fixes --- src/filesystem/inifile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/filesystem') diff --git a/src/filesystem/inifile.cc b/src/filesystem/inifile.cc index eccded4..8b6e8ad 100644 --- a/src/filesystem/inifile.cc +++ b/src/filesystem/inifile.cc @@ -102,7 +102,7 @@ bool IniFile::getline() { bool IniFile::got_key_string(char * const keylabel, std::string & valuestring) { //condebug << "IniFile got_value_string " << keylabel << " " << last_read_was_key << std::endl; - if (last_read_was_key && key_current == keylabel) { + if (last_read_was_key && (key_current.compare(keylabel) == 0 )) { valuestring.assign(value_current); return true; } else { -- cgit v1.2.3