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

[PATCH] imap-send.c: guard config parser from value=NULL

From
GSGovind Salinas <govind@sophiasuchtig.com>
Date
Feb 9, 2008, 20:18 UTC
Message-ID
<5d46db230802091218y406ee25bo3a1b93f917407ee3@mail.gmail.com>
Signed-off-by: Govind Salinas <blix@sophiasuchtig.com>
---
 imap-send.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/imap-send.c b/imap-send.c
index a429a76..a8f430e 100644
--- a/imap-send.c
+++ b/imap-send.c
@@ -1258,7 +1258,7 @@ git_imap_config(const char *key, const char *val)

 	if (!strcmp( "folder", key )) {
 		imap_folder = xstrdup( val );
-	} else if (!strcmp( "host", key )) {
+	} else if (val && !strcmp( "host", key )) {
 		{
 			if (!prefixcmp(val, "imap:"))
 				val += 5;
-- 
1.5.4.36.g9af61
Message 1 of 1 in “imap-send.c: guard config parser from value=NULL”
  1. imap-send.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.