Add missing NULL argument to varags function

Amazing this hasn’t caused any problems, but on 64 bit it was an instant crash.
This commit is contained in:
Allan Odgaard
2012-08-28 11:11:33 +02:00
parent 5add8042c1
commit 0cc79cf195

View File

@@ -232,7 +232,7 @@ namespace scm
if(!haveHead)
return NULL_STR;
std::string branchName = io::exec(env, executable(), "symbolic-ref", "HEAD");
std::string branchName = io::exec(env, executable(), "symbolic-ref", "HEAD", NULL);
branchName = branchName.substr(0, branchName.find("\n"));
if(branchName.find("refs/heads/") == 0)
branchName = branchName.substr(11);