diff options
author | Justus Winter <justus@gnupg.org> | 2016-10-05 10:33:09 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2016-10-05 10:37:02 +0200 |
commit | f45e96eec2681463572d5d996ac832626809ddd7 (patch) | |
tree | 27c39dd657bf972cd0364eae84c0f096d5d9ef5a /trans/crash.c | |
parent | 3a3c1759297d3621663571dc85d2fb5d1d53b3b1 (diff) |
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.
Diffstat (limited to 'trans/crash.c')
-rw-r--r-- | trans/crash.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/trans/crash.c b/trans/crash.c index 3c244515..0171cd73 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: |