commit-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU Mailutils branch, master, updated. release-3.0-1-gf674702


From: Sergey Poznyakoff
Subject: [SCM] GNU Mailutils branch, master, updated. release-3.0-1-gf674702
Date: Thu, 10 Nov 2016 05:47:04 +0000 (UTC)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mailutils".

http://git.savannah.gnu.org/cgit/mailutils.git/commit/?id=f674702867f09a3e2b8ebe3281a29cd9f660f29a

The branch, master has been updated
       via  f674702867f09a3e2b8ebe3281a29cd9f660f29a (commit)
      from  f93a4f1be0672e9a728bf28585e1c11a2e3306b4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f674702867f09a3e2b8ebe3281a29cd9f660f29a
Author: Sergey Poznyakoff <address@hidden>
Date:   Thu Nov 10 07:45:08 2016 +0200

    Fix program name duplicate in the output of "mailutils help COMMAND"

-----------------------------------------------------------------------

Summary of changes:
 mu/help.c |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/mu/help.c b/mu/help.c
index c2dcf1a..14fae20 100644
--- a/mu/help.c
+++ b/mu/help.c
@@ -35,15 +35,17 @@ mutool_help (int argc, char **argv)
 
   if (argc == 1)
     {
+      char *hargv[3];
       mutool_action_t action = dispatch_find_action (argv[0]);
       if (!action)
        {
          mu_error (_("don't know what %s is"), argv[0]);
          exit (1);
        }
-      mu_asprintf (&argv[0], "%s %s", mu_program_name, argv[0]);
-      argv[1] = "--help";
-      return action (2, argv);
+      hargv[0] = argv[0];
+      hargv[1] = "--help";
+      hargv[2] = NULL;
+      return action (3, hargv);
     }
   else if (argc > 1)
     {


hooks/post-receive
-- 
GNU Mailutils



reply via email to

[Prev in Thread] Current Thread [Next in Thread]