Commit 132c2db6 by Sascha Cunz

Fix possible free'ing of unitialized pointer in error case

parent 3a5e8fae
...@@ -29,7 +29,7 @@ static int create_branch( ...@@ -29,7 +29,7 @@ static int create_branch(
const char *name) const char *name)
{ {
git_commit *head_obj = NULL; git_commit *head_obj = NULL;
git_reference *branch_ref; git_reference *branch_ref = NULL;
int error; int error;
/* Find the target commit */ /* Find the target commit */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment