Merge branch 'jk/remote-literal-string-leakfix'
* jk/remote-literal-string-leakfix: remote: do not copy "origin" string literal
This commit is contained in:
commit
93542d90c0
2
remote.c
2
remote.c
@ -483,7 +483,7 @@ static void read_config(void)
|
|||||||
int flag;
|
int flag;
|
||||||
if (default_remote_name) /* did this already */
|
if (default_remote_name) /* did this already */
|
||||||
return;
|
return;
|
||||||
default_remote_name = xstrdup("origin");
|
default_remote_name = "origin";
|
||||||
current_branch = NULL;
|
current_branch = NULL;
|
||||||
head_ref = resolve_ref_unsafe("HEAD", sha1, 0, &flag);
|
head_ref = resolve_ref_unsafe("HEAD", sha1, 0, &flag);
|
||||||
if (head_ref && (flag & REF_ISSYMREF) &&
|
if (head_ref && (flag & REF_ISSYMREF) &&
|
||||||
|
Loading…
Reference in New Issue
Block a user