{"thread":{"id":"11997","subject":"[PATCH] imap-send.c: guard config parser from value=NULL","startedAt":"2008-02-09T20:18:13Z","lastAt":"2008-02-09T20:18:13Z","messageCount":1,"participants":["Govind Salinas"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"68117","messageId":"5d46db230802091218y406ee25bo3a1b93f917407ee3@mail.gmail.com","threadId":"11997","inReplyTo":null,"subject":"[PATCH] imap-send.c: guard config parser from value=NULL","fromName":"Govind Salinas","fromEmail":"govind@sophiasuchtig.com","sentAt":"2008-02-09T20:18:13Z","receivedAt":"2008-02-09T20:18:13Z","isPatch":true,"sender":{"key":"govind@sophiasuchtig.com","avatar":null},"body":"Signed-off-by: Govind Salinas <blix@sophiasuchtig.com>\n---\n imap-send.c |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/imap-send.c b/imap-send.c\nindex a429a76..a8f430e 100644\n--- a/imap-send.c\n+++ b/imap-send.c\n@@ -1258,7 +1258,7 @@ git_imap_config(const char *key, const char *val)\n\n \tif (!strcmp( \"folder\", key )) {\n \t\timap_folder = xstrdup( val );\n-\t} else if (!strcmp( \"host\", key )) {\n+\t} else if (val && !strcmp( \"host\", key )) {\n \t\t{\n \t\t\tif (!prefixcmp(val, \"imap:\"))\n \t\t\t\tval += 5;\n-- \n1.5.4.36.g9af61\n"}]}