git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] missing return

From
JFJerald Fitzjerald <jfj@freemail.gr>
Date
May 30, 2007, 19:16 UTC
Message-ID
<465DCD9D.5090501@freemail.gr>
In-Reply-To
<7vk5uq2pio.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
>I realize that I've seen this pointed out by somebody already.
>
It was suggested on irc a couple of days ago.
Signed-off-by: Jerald Fitzjerald <jfj@freemail.gr>
---
diff --git a/base85.c b/base85.c
--- a/base85.c
+++ b/base85.c
@@ -66,7 +66,7 @@ int decode_85(char *dst, const char *buf
		 */
		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);
Previous: Junio C Hamano
Message 3 of 3 in “missing return”
  1. missing returnJerald Fitzjerald, May 30, 2007
  2. Junio C HamanoMay 30, 2007
  3. Jerald FitzjeraldMay 30, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.