--- /dev/null
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id BB817431FAE\r
+ for <notmuch@notmuchmail.org>; Fri, 3 Feb 2012 14:41:19 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id eMdWnZDO9B6K for <notmuch@notmuchmail.org>;\r
+ Fri, 3 Feb 2012 14:41:19 -0800 (PST)\r
+Received: from mail-lpp01m020-f181.google.com (mail-lpp01m020-f181.google.com\r
+ [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 1A075431FAF\r
+ for <notmuch@notmuchmail.org>; Fri, 3 Feb 2012 14:41:18 -0800 (PST)\r
+Received: by mail-lpp01m020-f181.google.com with SMTP id gn5so940158lbb.26\r
+ for <notmuch@notmuchmail.org>; Fri, 03 Feb 2012 14:41:18 -0800 (PST)\r
+Received: by 10.112.49.67 with SMTP id s3mr2346817lbn.92.1328308878707;\r
+ Fri, 03 Feb 2012 14:41:18 -0800 (PST)\r
+Received: from localhost (dsl-hkibrasgw4-fe50f800-253.dhcp.inet.fi.\r
+ [84.248.80.253])\r
+ by mx.google.com with ESMTPS id pt3sm5891357lab.9.2012.02.03.14.41.16\r
+ (version=SSLv3 cipher=OTHER); Fri, 03 Feb 2012 14:41:17 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/2] cli: reach previously unreachable cleanup code in\r
+ "notmuch show"\r
+Date: Sat, 4 Feb 2012 00:41:09 +0200\r
+Message-Id:\r
+ <5b1ad40819ff3a97a833a46663f79a7462d6996e.1328308635.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.5.4\r
+In-Reply-To:\r
+ <df2e9bd7682e9c81e1b205cc1d92a1526cdd1a9b.1328308635.git.jani@nikula.org>\r
+References:\r
+ <df2e9bd7682e9c81e1b205cc1d92a1526cdd1a9b.1328308635.git.jani@nikula.org>\r
+In-Reply-To:\r
+ <df2e9bd7682e9c81e1b205cc1d92a1526cdd1a9b.1328308635.git.jani@nikula.org>\r
+References:\r
+ <df2e9bd7682e9c81e1b205cc1d92a1526cdd1a9b.1328308635.git.jani@nikula.org>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 03 Feb 2012 22:41:19 -0000\r
+\r
+The last lines of notmuch_show_command() function were\r
+unreachable. Fix it by using a variable for return value.\r
+\r
+Signed-off-by: Jani Nikula <jani@nikula.org>\r
+---\r
+ notmuch-show.c | 8 ++++----\r
+ 1 files changed, 4 insertions(+), 4 deletions(-)\r
+\r
+diff --git a/notmuch-show.c b/notmuch-show.c\r
+index f93e121..b18e279 100644\r
+--- a/notmuch-show.c\r
++++ b/notmuch-show.c\r
+@@ -1064,7 +1064,7 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[]))\r
+ notmuch_database_t *notmuch;\r
+ notmuch_query_t *query;\r
+ char *query_string;\r
+- int opt_index;\r
++ int opt_index, ret;\r
+ const notmuch_show_format_t *format = &format_text;\r
+ notmuch_show_params_t params = { .part = -1 };\r
+ int format_sel = NOTMUCH_FORMAT_NOT_SPECIFIED;\r
+@@ -1173,9 +1173,9 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[]))\r
+ }\r
+ \r
+ if (params.part >= 0)\r
+- return do_show_single (ctx, query, format, ¶ms);\r
++ ret = do_show_single (ctx, query, format, ¶ms);\r
+ else\r
+- return do_show (ctx, query, format, ¶ms);\r
++ ret = do_show (ctx, query, format, ¶ms);\r
+ \r
+ notmuch_query_destroy (query);\r
+ notmuch_database_close (notmuch);\r
+@@ -1183,5 +1183,5 @@ notmuch_show_command (void *ctx, unused (int argc), unused (char *argv[]))\r
+ if (params.cryptoctx)\r
+ g_object_unref(params.cryptoctx);\r
+ \r
+- return 0;\r
++ return ret;\r
+ }\r
+-- \r
+1.7.5.4\r
+\r