summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Budovski <abudovski@gmail.com>2011-01-11 17:50:37 +1100
committerAlex Budovski <abudovski@gmail.com>2011-01-11 17:52:45 +1100
commite0c23b88c57a5d765e5572d8ed317a4ba4da102a (patch)
treeb0fb87c8fbf16bdb6a53157ff15a669f255c2d89 /src
parent0a3bcad07ee1de26dea22451952b55f0568e2985 (diff)
downloadlibgit2-e0c23b88c57a5d765e5572d8ed317a4ba4da102a.tar.gz
Remove unused variable.
Diffstat (limited to 'src')
-rw-r--r--src/repository.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/repository.c b/src/repository.c
index ad1b68225..f0c822f5f 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -456,9 +456,8 @@ static int repo_init_createhead(const char *head_path)
git_file fd;
int error = GIT_SUCCESS;
char head_symlink[50];
- int len;
- len = sprintf(head_symlink, "%s %s%s\n", GIT_SYMREF, GIT_REFS_HEADS_DIR, GIT_BRANCH_MASTER);
+ sprintf(head_symlink, "%s %s%s\n", GIT_SYMREF, GIT_REFS_HEADS_DIR, GIT_BRANCH_MASTER);
if ((fd = gitfo_creat(head_path, S_IREAD | S_IWRITE)) < GIT_SUCCESS)
return GIT_ERROR;