diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-10-28 10:43:28 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-10-28 10:43:28 -0700 |
commit | 93542d90c005ee614ce6ad4dde16b89764cdea67 (patch) | |
tree | dfa48e6bb44073c091a552085ca8e3900c2a38d2 /remote.c | |
parent | bb2fd90c7bbb4261aa1800a4c35b06dc5116a647 (diff) | |
parent | 11a6ba1c012e8275c70032fb2e847740a2f61865 (diff) | |
download | git-93542d90c005ee614ce6ad4dde16b89764cdea67.tar.gz git-93542d90c005ee614ce6ad4dde16b89764cdea67.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) && |