DORMANTno replies

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

From: Govind Salinas <hidden>
Date: 2016-06-15 22:44:12
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Govind Salinas <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help