Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 4BF5640D14B for ; Thu, 14 Oct 2010 11:18:32 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UYq3XckBEFpR for ; Thu, 14 Oct 2010 11:18:21 -0700 (PDT) Received: from everglades.pioto.org (mail.pioto.org [207.192.71.235]) by olra.theworths.org (Postfix) with ESMTP id DDAD540D143 for ; Thu, 14 Oct 2010 11:18:21 -0700 (PDT) Received: from aether.pioto.org (pool-72-95-142-191.pitbpa.fios.verizon.net [72.95.142.191]) (Authenticated sender: pioto) by everglades.pioto.org (Postfix) with ESMTPSA id DA8C8160655 for ; Thu, 14 Oct 2010 14:18:19 -0400 (EDT) Received: by aether.pioto.org (Postfix, from userid 1000) id 8238B6B1BE; Thu, 14 Oct 2010 14:18:19 -0400 (EDT) From: Mike Kelly 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 Message-Id: <1287080299-13828-1-git-send-email-pioto@pioto.org> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <20101013094340.41580a2f@pioto.org> References: <20101013094340.41580a2f@pioto.org> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2010 18:18:32 -0000 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