Re: [PATCH v4 02/16] Move crypto.c into libutil
[notmuch-archives.git] / 6d / c5da4873dbe4c9f6b40490acbd548d8057efae
1 Return-Path: <bremner@pivot.cs.unb.ca>\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 6587E431FD0\r
6         for <notmuch@notmuchmail.org>; Thu, 24 Nov 2011 12:03:03 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id ztml0uDp49sd for <notmuch@notmuchmail.org>;\r
16         Thu, 24 Nov 2011 12:03:03 -0800 (PST)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id CE98E431FB6\r
21         for <notmuch@notmuchmail.org>; Thu, 24 Nov 2011 12:03:02 -0800 (PST)\r
22 Received: from convex-new.cs.unb.ca ([131.202.13.154])\r
23         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pAOK2wXg001760;\r
24         Thu, 24 Nov 2011 16:02:58 -0400\r
25 Received: from bremner by convex-new.cs.unb.ca with local (Exim 4.72)\r
26         (envelope-from <bremner@pivot.cs.unb.ca>)\r
27         id 1RTfVa-0004pL-6L; Thu, 24 Nov 2011 16:02:58 -0400\r
28 From: David Bremner <david@tethera.net>\r
29 To: notmuch@notmuchmail.org\r
30 Subject: [PATCH] CLI: update call to notmuch_help_command for new calling\r
31         conventions.\r
32 Date: Thu, 24 Nov 2011 16:02:41 -0400\r
33 Message-Id: <1322164961-18523-1-git-send-email-david@tethera.net>\r
34 X-Mailer: git-send-email 1.7.5.4\r
35 Cc: David Bremner <bremner@debian.org>\r
36 X-BeenThere: notmuch@notmuchmail.org\r
37 X-Mailman-Version: 2.1.13\r
38 Precedence: list\r
39 List-Id: "Use and development of the notmuch mail system."\r
40         <notmuch.notmuchmail.org>\r
41 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
42         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
43 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
44 List-Post: <mailto:notmuch@notmuchmail.org>\r
45 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
46 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
48 X-List-Received-Date: Thu, 24 Nov 2011 20:03:03 -0000\r
49 \r
50 From: David Bremner <bremner@debian.org>\r
51 \r
52 When I changed the calling convention to pass in all but the zero-th\r
53 argument to subcommands, I missed this one call, resulting in a\r
54 segmentation fault.\r
55 ---\r
56  notmuch.c |    2 +-\r
57  1 files changed, 1 insertions(+), 1 deletions(-)\r
58 \r
59 diff --git a/notmuch.c b/notmuch.c\r
60 index 77973f8..d44ce9a 100644\r
61 --- a/notmuch.c\r
62 +++ b/notmuch.c\r
63 @@ -621,7 +621,7 @@ main (int argc, char *argv[])\r
64         return notmuch (local);\r
65  \r
66      if (STRNCMP_LITERAL (argv[1], "--help") == 0)\r
67 -       return notmuch_help_command (NULL, 0, NULL);\r
68 +       return notmuch_help_command (NULL, argc - 1, &argv[1]);\r
69  \r
70      if (STRNCMP_LITERAL (argv[1], "--version") == 0) {\r
71         printf ("notmuch " STRINGIFY(NOTMUCH_VERSION) "\n");\r
72 -- \r
73 1.7.5.4\r
74 \r