1 Return-Path: <jani@nikula.org>
\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 BB817431FAE
\r
6 for <notmuch@notmuchmail.org>; Fri, 3 Feb 2012 14:41:19 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"
\r
12 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id eMdWnZDO9B6K for <notmuch@notmuchmail.org>;
\r
17 Fri, 3 Feb 2012 14:41:19 -0800 (PST)
\r
18 Received: from mail-lpp01m020-f181.google.com (mail-lpp01m020-f181.google.com
\r
19 [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 1A075431FAF
\r
22 for <notmuch@notmuchmail.org>; Fri, 3 Feb 2012 14:41:18 -0800 (PST)
\r
23 Received: by mail-lpp01m020-f181.google.com with SMTP id gn5so940158lbb.26
\r
24 for <notmuch@notmuchmail.org>; Fri, 03 Feb 2012 14:41:18 -0800 (PST)
\r
25 Received: by 10.112.49.67 with SMTP id s3mr2346817lbn.92.1328308878707;
\r
26 Fri, 03 Feb 2012 14:41:18 -0800 (PST)
\r
27 Received: from localhost (dsl-hkibrasgw4-fe50f800-253.dhcp.inet.fi.
\r
29 by mx.google.com with ESMTPS id pt3sm5891357lab.9.2012.02.03.14.41.16
\r
30 (version=SSLv3 cipher=OTHER); Fri, 03 Feb 2012 14:41:17 -0800 (PST)
\r
31 From: Jani Nikula <jani@nikula.org>
\r
32 To: notmuch@notmuchmail.org
\r
33 Subject: [PATCH 2/2] cli: reach previously unreachable cleanup code in
\r
35 Date: Sat, 4 Feb 2012 00:41:09 +0200
\r
37 <5b1ad40819ff3a97a833a46663f79a7462d6996e.1328308635.git.jani@nikula.org>
\r
38 X-Mailer: git-send-email 1.7.5.4
\r
40 <df2e9bd7682e9c81e1b205cc1d92a1526cdd1a9b.1328308635.git.jani@nikula.org>
\r
42 <df2e9bd7682e9c81e1b205cc1d92a1526cdd1a9b.1328308635.git.jani@nikula.org>
\r
44 <df2e9bd7682e9c81e1b205cc1d92a1526cdd1a9b.1328308635.git.jani@nikula.org>
\r
46 <df2e9bd7682e9c81e1b205cc1d92a1526cdd1a9b.1328308635.git.jani@nikula.org>
\r
47 X-BeenThere: notmuch@notmuchmail.org
\r
48 X-Mailman-Version: 2.1.13
\r
50 List-Id: "Use and development of the notmuch mail system."
\r
51 <notmuch.notmuchmail.org>
\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
53 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
55 List-Post: <mailto:notmuch@notmuchmail.org>
\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
59 X-List-Received-Date: Fri, 03 Feb 2012 22:41:19 -0000
\r
61 The last lines of notmuch_show_command() function were
\r
62 unreachable. Fix it by using a variable for return value.
\r
64 Signed-off-by: Jani Nikula <jani@nikula.org>
\r
66 notmuch-show.c | 8 ++++----
\r
67 1 files changed, 4 insertions(+), 4 deletions(-)
\r
69 diff --git a/notmuch-show.c b/notmuch-show.c
\r
70 index f93e121..b18e279 100644
\r
71 --- a/notmuch-show.c
\r
72 +++ b/notmuch-show.c
\r
73 @@ -1064,7 +1064,7 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[]))
\r
74 notmuch_database_t *notmuch;
\r
75 notmuch_query_t *query;
\r
78 + int opt_index, ret;
\r
79 const notmuch_show_format_t *format = &format_text;
\r
80 notmuch_show_params_t params = { .part = -1 };
\r
81 int format_sel = NOTMUCH_FORMAT_NOT_SPECIFIED;
\r
82 @@ -1173,9 +1173,9 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[]))
\r
85 if (params.part >= 0)
\r
86 - return do_show_single (ctx, query, format, ¶ms);
\r
87 + ret = do_show_single (ctx, query, format, ¶ms);
\r
89 - return do_show (ctx, query, format, ¶ms);
\r
90 + ret = do_show (ctx, query, format, ¶ms);
\r
92 notmuch_query_destroy (query);
\r
93 notmuch_database_close (notmuch);
\r
94 @@ -1183,5 +1183,5 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[]))
\r
95 if (params.cryptoctx)
\r
96 g_object_unref(params.cryptoctx);
\r