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

[PATCH] connect.c: guard config parser from value=NULL

From
GSGovind Salinas <blix@sophiasuchtig.com>
Date
Feb 9, 2008, 00:35 UTC
Message-ID
<5d46db230802081635v2b250aa5i173a1cfba0c06d81@mail.gmail.com>
Signed-off-by: Govind Salinas <blix@sophiasuchtig.com>
---
 connect.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/connect.c b/connect.c
index 3aefd4a..90315ff 100644
--- a/connect.c
+++ b/connect.c
@@ -363,7 +363,7 @@ static int rhost_len;

 static int git_proxy_command_options(const char *var, const char *value)
 {
-	if (!strcmp(var, "core.gitproxy")) {
+	if (value && !strcmp(var, "core.gitproxy")) {
 		const char *for_pos;
 		int matchlen = -1;
 		int hostlen;
-- 
1.5.4.36.g9af61
Message 1 of 1 in “connect.c: guard config parser from value=NULL”
  1. connect.c: guard config parser from value=NULLGovind Salinas, Feb 9, 2008

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.