summaryrefslogtreecommitdiff
path: root/remote.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-10-28 10:43:28 -0700
committerJunio C Hamano <gitster@pobox.com>2013-10-28 10:43:28 -0700
commit93542d90c005ee614ce6ad4dde16b89764cdea67 (patch)
treedfa48e6bb44073c091a552085ca8e3900c2a38d2 /remote.c
parentbb2fd90c7bbb4261aa1800a4c35b06dc5116a647 (diff)
parent11a6ba1c012e8275c70032fb2e847740a2f61865 (diff)
downloadgit-93542d90c005ee614ce6ad4dde16b89764cdea67.tar.gz
Merge branch 'jk/remote-literal-string-leakfix'
* jk/remote-literal-string-leakfix: remote: do not copy "origin" string literal
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote.c b/remote.c
index e9fedfa918..9f1a8aa2c4 100644
--- a/remote.c
+++ b/remote.c
@@ -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) &&