Commit c0e038a2 by Etienne Samson Committed by Patrick Steinhardt

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.

(cherry picked from commit aa8cb586)
parent ef7d7def
......@@ -522,7 +522,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