[PATCH] (patchlet) pack-objects.c: try_delta()
Return value of try_delta is checked for negativeness, but the success path does not return anything, letting compiler warn and presumably return garbage. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
a81efcba8c
commit
eb41ab11e8
@ -321,6 +321,7 @@ static int try_delta(struct unpacked *cur, struct unpacked *old)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
free(delta_buf);
|
free(delta_buf);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void find_deltas(struct object_entry **list, int window)
|
static void find_deltas(struct object_entry **list, int window)
|
||||||
|
Reference in New Issue
Block a user