Fix possible free'ing of unitialized pointer in error case

This commit is contained in:
Sascha Cunz 2013-01-11 02:18:27 +01:00
parent 3a5e8faee7
commit 132c2db6a9

View File

@ -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 */