Skip to content

Commit

Permalink
decode_85(): fix missing return.
Browse files Browse the repository at this point in the history
When the function detected an invalid base85 sequence, it issued
an error message but forgot to return error status at that point
and kept going.

Signed-off-by: Jerald Fitzjerald <jfj@freemail.gr>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Jerald Fitzjerald authored and Junio C Hamano committed May 30, 2007
1 parent 192a6be commit 86d14e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base85.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ int decode_85(char *dst, const char *buffer, int len)
*/
if (0x03030303 < acc ||
0xffffffff - de < (acc *= 85))
error("invalid base85 sequence %.5s", buffer-5);
return error("invalid base85 sequence %.5s", buffer-5);
acc += de;
say1(" %08x", acc);

Expand Down

0 comments on commit 86d14e1

Please sign in to comment.