From: "Govind Salinas" <govind@sophiasuchtig.com>
To: "Git Mailing List" <git@vger.kernel.org>,
"Junio C Hamano" <gitster@pobox.com>
Subject: [PATCH] imap-send.c: guard config parser from value=NULL
Date: Sat, 9 Feb 2008 14:18:13 -0600 [thread overview]
Message-ID: <5d46db230802091218y406ee25bo3a1b93f917407ee3@mail.gmail.com> (raw)
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
reply other threads:[~2008-02-09 20:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5d46db230802091218y406ee25bo3a1b93f917407ee3@mail.gmail.com \
--to=govind@sophiasuchtig.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).