summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerald Fitzjerald <jfj@freemail.gr>2007-05-30 12:39:58 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-05-30 22:03:50 (GMT)
commit86d14e1b1d1063fc943c71edc8b05e1ce32c1602 (patch)
treeb441e296412b6bb41806b5392fc78e6df288bb5a
parent192a6be2a77ab3bf446237fdf6575b0aca863d9e (diff)
downloadgit-86d14e1b1d1063fc943c71edc8b05e1ce32c1602.zip
git-86d14e1b1d1063fc943c71edc8b05e1ce32c1602.tar.gz
git-86d14e1b1d1063fc943c71edc8b05e1ce32c1602.tar.bz2
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>
-rw-r--r--base85.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/base85.c b/base85.c
index a6c41d5..b88270f 100644
--- a/base85.c
+++ b/base85.c
@@ -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);