From a4f34cbb4cea1f0b0e625b528f269f4b517c64f8 Mon Sep 17 00:00:00 2001 From: Alex Riesen Date: Mon, 27 Oct 2008 11:22:09 +0100 Subject: Use git_pathdup instead of xstrdup(git_path(...)) Signed-off-by: Junio C Hamano --- server-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server-info.c') diff --git a/server-info.c b/server-info.c index c1c073b2f0..66b0d9d878 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); -- cgit v1.2.1