unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Mike Kelly <pioto@pioto.org>
To: notmuch@notmuchmail.org
Subject: [PATCH] notmuch-setup.c: Initialize getline(3) response_size to 0
Date: Thu, 14 Oct 2010 14:18:19 -0400	[thread overview]
Message-ID: <1287080299-13828-1-git-send-email-pioto@pioto.org> (raw)
In-Reply-To: <20101013094340.41580a2f@pioto.org>

This appears to be necessary on FreeBSD. If this isn't done, we get a
nasty segfault.

See: id:20101013094340.41580a2f@pioto.org
---
 notmuch-setup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/notmuch-setup.c b/notmuch-setup.c
index 955deb7..0ed80ad 100644
--- a/notmuch-setup.c
+++ b/notmuch-setup.c
@@ -92,7 +92,7 @@ notmuch_setup_command (unused (void *ctx),
 		       unused (int argc), unused (char *argv[]))
 {
     char *response = NULL;
-    size_t response_size;
+    size_t response_size = 0;
     notmuch_config_t *config;
     char **old_other_emails;
     size_t old_other_emails_len;
-- 
1.7.2.3

  parent reply	other threads:[~2010-10-14 18:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-13 13:43 notmuch setup: segfault in prompt macro Mike Kelly
2010-10-13 17:26 ` David Bremner
2010-10-13 17:42   ` Mike Kelly
2010-10-14 18:18 ` Mike Kelly [this message]
2010-10-29 20:15   ` [PATCH] notmuch-setup.c: Initialize getline(3) response_size to 0 Carl Worth

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

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1287080299-13828-1-git-send-email-pioto@pioto.org \
    --to=pioto@pioto.org \
    --cc=notmuch@notmuchmail.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).