Skip to content

Commit

Permalink
Merge branch 'jk/remote-literal-string-leakfix'
Browse files Browse the repository at this point in the history
* jk/remote-literal-string-leakfix:
  remote: do not copy "origin" string literal
  • Loading branch information
Junio C Hamano committed Oct 28, 2013
2 parents bb2fd90 + 11a6ba1 commit 93542d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ static void read_config(void)
int flag;
if (default_remote_name) /* did this already */
return;
default_remote_name = xstrdup("origin");
default_remote_name = "origin";
current_branch = NULL;
head_ref = resolve_ref_unsafe("HEAD", sha1, 0, &flag);
if (head_ref && (flag & REF_ISSYMREF) &&
Expand Down

0 comments on commit 93542d9

Please sign in to comment.