--- src/leoini.h~ 2013-06-01 22:28:45.000000000 +0300 +++ src/leoini.h 2013-06-01 22:32:05.000000000 +0300 @@ -260,11 +260,9 @@ if( start == std::string::npos || end == std::string::npos ) - s = ""; - else - s = s.substr( start+1, start-end -1 ); + return s2x(""); - return s2x(s); + return s2x(s.substr( start+1, start-end -1 )); } } // namespace Leo