Merge branch 'js/tests-windows-port-fix'
[gitweb.git] / remote.c
index e9fedfa918d6806532184b8735d2761951fd4a2e..9f1a8aa2c499ae5d2eb8f76f8218eb62937eea51 100644 (file)
--- 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) &&