Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Cunz <sascha@babbelbox.org>2013-01-11 05:18:27 +0400
committerSascha Cunz <sascha@babbelbox.org>2013-01-11 05:18:27 +0400
commit132c2db6a9f839d7697e8bff05861a92825a9c7c (patch)
treef0e2d27dcf5717d0632c4709e742fdd03e857f5c /src/clone.c
parent3a5e8faee7f4e5ede2f938d8975261cc84e27383 (diff)
Fix possible free'ing of unitialized pointer in error case
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 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 */