summaryrefslogtreecommitdiff
path: root/server-info.c
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2008-10-27 10:22:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-10-31 00:52:24 (GMT)
commita4f34cbb4cea1f0b0e625b528f269f4b517c64f8 (patch)
treed17b28dc28f2f182c169030bd618a625a65b865c /server-info.c
parentaba13e7c0566f578f866504bfcb388a72f7e5079 (diff)
downloadgit-a4f34cbb4cea1f0b0e625b528f269f4b517c64f8.zip
git-a4f34cbb4cea1f0b0e625b528f269f4b517c64f8.tar.gz
git-a4f34cbb4cea1f0b0e625b528f269f4b517c64f8.tar.bz2
Use git_pathdup instead of xstrdup(git_path(...))
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'server-info.c')
-rw-r--r--server-info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server-info.c b/server-info.c
index c1c073b..66b0d9d 100644
--- a/server-info.c
+++ b/server-info.c
@@ -25,7 +25,7 @@ static int add_info_ref(const char *path, const unsigned char *sha1, int flag, v
static int update_info_refs(int force)
{
- char *path0 = xstrdup(git_path("info/refs"));
+ char *path0 = git_pathdup("info/refs");
int len = strlen(path0);
char *path1 = xmalloc(len + 2);