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 6587E431FD0 for ; Thu, 24 Nov 2011 12:03:03 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled 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 ztml0uDp49sd for ; Thu, 24 Nov 2011 12:03:03 -0800 (PST) Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id CE98E431FB6 for ; Thu, 24 Nov 2011 12:03:02 -0800 (PST) Received: from convex-new.cs.unb.ca ([131.202.13.154]) by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pAOK2wXg001760; Thu, 24 Nov 2011 16:02:58 -0400 Received: from bremner by convex-new.cs.unb.ca with local (Exim 4.72) (envelope-from ) id 1RTfVa-0004pL-6L; Thu, 24 Nov 2011 16:02:58 -0400 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH] CLI: update call to notmuch_help_command for new calling conventions. Date: Thu, 24 Nov 2011 16:02:41 -0400 Message-Id: <1322164961-18523-1-git-send-email-david@tethera.net> X-Mailer: git-send-email 1.7.5.4 Cc: David Bremner 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, 24 Nov 2011 20:03:03 -0000 From: David Bremner When I changed the calling convention to pass in all but the zero-th argument to subcommands, I missed this one call, resulting in a segmentation fault. --- notmuch.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/notmuch.c b/notmuch.c index 77973f8..d44ce9a 100644 --- a/notmuch.c +++ b/notmuch.c @@ -621,7 +621,7 @@ main (int argc, char *argv[]) return notmuch (local); if (STRNCMP_LITERAL (argv[1], "--help") == 0) - return notmuch_help_command (NULL, 0, NULL); + return notmuch_help_command (NULL, argc - 1, &argv[1]); if (STRNCMP_LITERAL (argv[1], "--version") == 0) { printf ("notmuch " STRINGIFY(NOTMUCH_VERSION) "\n"); -- 1.7.5.4