Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 93542d9

Browse files
committed
Merge branch 'jk/remote-literal-string-leakfix'
* jk/remote-literal-string-leakfix: remote: do not copy "origin" string literal
2 parents bb2fd90 + 11a6ba1 commit 93542d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ static void read_config(void)
483483
int flag;
484484
if (default_remote_name) /* did this already */
485485
return;
486-
default_remote_name = xstrdup("origin");
486+
default_remote_name = "origin";
487487
current_branch = NULL;
488488
head_ref = resolve_ref_unsafe("HEAD", sha1, 0, &flag);
489489
if (head_ref && (flag & REF_ISSYMREF) &&

0 commit comments

Comments
 (0)