gcc doesn't like sending a temporary string object by reference

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4158 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2005-07-02 16:49:31 +00:00
parent 0deba887fc
commit 3824ddf262

View file

@ -441,7 +441,8 @@ int main(int argc, char **argv)
}
if (do_cd)
{
if (change_to_script_dir(build, string(sfile)))
string script_file = string(sfile);
if (change_to_script_dir(build, script_file))
return 1;
}
}