summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clone.c b/src/clone.c
index 9012c04a9..32ac08bf2 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -29,7 +29,7 @@ static int create_branch(
const char *name)
{
git_commit *head_obj = NULL;
- git_reference *branch_ref;
+ git_reference *branch_ref = NULL;
int error;
/* Find the target commit */