Commit aa8cb586 by Etienne Samson

revwalk: The left operand of '<' is a garbage value

At line 594, we do this :
if (error < 0)
		return error;

but if nothing was pushed in a GIT_SORT_TIME revwalk, we'd return
uninitialized stack data.
parent 5b0258ad
......@@ -550,7 +550,7 @@ cleanup:
static int prepare_walk(git_revwalk *walk)
{
int error;
int error = 0;
git_commit_list *list, *commits = NULL;
git_commit_list_node *next;
......
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