git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] imap-send.c: guard config parser from value=NULL
@ 2008-02-09 20:18 Govind Salinas
  0 siblings, 0 replies; only message in thread
From: Govind Salinas @ 2008-02-09 20:18 UTC (permalink / raw)
  To: Git Mailing List, Junio C Hamano

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-09 20:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-09 20:18 [PATCH] imap-send.c: guard config parser from value=NULL Govind Salinas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).