A non-windows loop.

This commit is contained in:
Jason Felds
2013-05-01 23:02:27 -04:00
parent 9d19421b7a
commit 9d237ae779
+3 -3
View File
@@ -215,11 +215,11 @@ static RString GetDirOfExecutable( RString argv0 )
vector<RString> vPath;
split( path, ":", vPath );
FOREACH( RString, vPath, i )
for (RString &i : vPath)
{
if( access(*i + "/" + argv0, X_OK|R_OK) )
if( access(i + "/" + argv0, X_OK|R_OK) )
continue;
sPath = *i;
sPath = i;
break;
}
if( sPath.empty() )