@matheusbsbs / matheus-bagliano / commits / 86d14e1b1d
Fork 0

decode_85(): fix missing return.

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>

Jerald Fitzjerald committed May 30, 2007 at 05:39 UTC 86d14e1b1d1063fc943c71edc8b05e1ce32c1602
1 file changed +1 -1
base85.c
+1 -1
@@ -66,7 +66,7 @@ int decode_85(char *dst, const char *buffer, int len)
66 */
67 if (0x03030303 < acc ||
68 0xffffffff - de < (acc *= 85))
69 - error("invalid base85 sequence %.5s", buffer-5);
69 + return error("invalid base85 sequence %.5s", buffer-5);
70 acc += de;
71 say1(" %08x", acc);
72