Skip to content

Commit

Permalink
[PATCH] (patchlet) pack-objects.c: try_delta()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano authored and Linus Torvalds committed Jun 26, 2005
1 parent a81efcb commit eb41ab1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pack-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ static int try_delta(struct unpacked *cur, struct unpacked *old)
}
}
free(delta_buf);
return 0;
}

static void find_deltas(struct object_entry **list, int window)
Expand Down

0 comments on commit eb41ab1

Please sign in to comment.