1 Return-Path: <jeff@ocjtech.us>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 3C4E3431FBC
\r
6 for <notmuch@notmuchmail.org>; Wed, 25 Nov 2009 05:01:49 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 Received: from olra.theworths.org ([127.0.0.1])
\r
9 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
10 with ESMTP id LgMevsW8kc66 for <notmuch@notmuchmail.org>;
\r
11 Wed, 25 Nov 2009 05:01:48 -0800 (PST)
\r
12 Received: from mail-yx0-f187.google.com (mail-yx0-f187.google.com
\r
14 by olra.theworths.org (Postfix) with ESMTP id 5E6BA431FAE
\r
15 for <notmuch@notmuchmail.org>; Wed, 25 Nov 2009 05:01:48 -0800 (PST)
\r
16 Received: by yxe17 with SMTP id 17so6586416yxe.33
\r
17 for <notmuch@notmuchmail.org>; Wed, 25 Nov 2009 05:01:47 -0800 (PST)
\r
18 Received: by 10.101.152.16 with SMTP id e16mr5186021ano.180.1259154106929;
\r
19 Wed, 25 Nov 2009 05:01:46 -0800 (PST)
\r
20 Received: from lt26923.campus.dmacc.edu ([69.57.47.215])
\r
21 by mx.google.com with ESMTPS id 5sm681816yxd.17.2009.11.25.05.01.45
\r
22 (version=TLSv1/SSLv3 cipher=RC4-MD5);
\r
23 Wed, 25 Nov 2009 05:01:46 -0800 (PST)
\r
24 Received: from localhost ([127.0.0.1] helo=localhost.localdomain)
\r
25 by lt26923.campus.dmacc.edu with esmtps (TLSv1:AES256-SHA:256)
\r
26 (Exim 4.69) (envelope-from <jeff@ocjtech.us>)
\r
27 id 1NDHV7-0003sA-Lj; Wed, 25 Nov 2009 07:01:41 -0600
\r
28 From: "Jeffrey C. Ollie" <jeff@ocjtech.us>
\r
29 To: Not Much Mail <notmuch@notmuchmail.org>
\r
30 Date: Wed, 25 Nov 2009 07:01:36 -0600
\r
31 Message-Id: <1259154096-14856-1-git-send-email-jeff@ocjtech.us>
\r
32 X-Mailer: git-send-email 1.6.5.2
\r
33 Subject: [notmuch] [PATCH] Silence compiler warning by initializing a
\r
35 X-BeenThere: notmuch@notmuchmail.org
\r
36 X-Mailman-Version: 2.1.12
\r
38 List-Id: "Use and development of the notmuch mail system."
\r
39 <notmuch.notmuchmail.org>
\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
41 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
43 List-Post: <mailto:notmuch@notmuchmail.org>
\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
47 X-List-Received-Date: Wed, 25 Nov 2009 13:01:49 -0000
\r
49 If Xapian threw an exception on notmuch_query_count_messages the count
\r
50 variable could be used uninitialized. Initialize count to solve the
\r
53 Signed-off-by: Jeffrey C. Ollie <jeff@ocjtech.us>
\r
56 1 files changed, 1 insertions(+), 1 deletions(-)
\r
58 diff --git a/lib/query.cc b/lib/query.cc
\r
59 index a571a61..9106b92 100644
\r
62 @@ -315,7 +315,7 @@ notmuch_query_count_messages (notmuch_query_t *query)
\r
64 notmuch_database_t *notmuch = query->notmuch;
\r
65 const char *query_string = query->query_string;
\r
66 - Xapian::doccount count;
\r
67 + Xapian::doccount count = 0;
\r
70 Xapian::Enquire enquire (*notmuch->xapian_db);
\r