commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 16/25: trans/crash: Use empty core file templates to disable the


From: Samuel Thibault
Subject: [hurd] 16/25: trans/crash: Use empty core file templates to disable the feature.
Date: Mon, 24 Oct 2016 00:16:45 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit f45e96eec2681463572d5d996ac832626809ddd7
Author: Justus Winter <address@hidden>
Date:   Wed Oct 5 10:33:09 2016 +0200

    trans/crash: Use empty core file templates to disable the feature.
    
    * trans/crash.c (parse_opt): Use empty core file templates to disable
    the feature.
---
 trans/crash.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/trans/crash.c b/trans/crash.c
index 3c24451..0171cd7 100644
--- a/trans/crash.c
+++ b/trans/crash.c
@@ -645,7 +645,10 @@ parse_opt (int opt, char *arg, struct argp_state *state)
            return EINVAL;
          }
       }
-      corefile_template = arg;
+      if (strlen (arg) == 0)
+       corefile_template = NULL;
+      else
+       corefile_template = arg;
       break;
 
     case ARGP_KEY_SUCCESS:

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

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