summaryrefslogtreecommitdiff
path: root/src/clone.c
diff options
context:
space:
mode:
authorMichael Schubert <schu@schu.io>2012-10-09 00:51:43 +0200
committerMichael Schubert <schu@schu.io>2012-10-09 17:51:11 +0200
commitaa4437f637371c531355029686cb5780fd99c988 (patch)
treeb5fcc255dcafdb8a9a04b2004dd343a187af9137 /src/clone.c
parent9adfa7d147b319593789cbaeea94a97141b1e4f8 (diff)
downloadlibgit2-aa4437f637371c531355029686cb5780fd99c988.tar.gz
Fix compiler warnings
* tests-clar/status: remove an unused variable * clone: fix -Wmaybe-uninitialized warning
Diffstat (limited to 'src/clone.c')
-rw-r--r--src/clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clone.c b/src/clone.c
index a5f4867db..00e39d3b5 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -153,7 +153,7 @@ static int update_head_to_new_branch(
const git_oid *target,
const char *name)
{
- git_reference *tracking_branch;
+ git_reference *tracking_branch = NULL;
int error;
if ((error = create_tracking_branch(