mirror of
https://github.com/textmate/textmate.git
synced 2026-01-21 20:57:54 -05:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user