summaryrefslogtreecommitdiff
path: root/trans/crash.c
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-10-05 10:33:09 +0200
committerJustus Winter <justus@gnupg.org>2016-10-05 10:37:02 +0200
commitf45e96eec2681463572d5d996ac832626809ddd7 (patch)
tree27c39dd657bf972cd0364eae84c0f096d5d9ef5a /trans/crash.c
parent3a3c1759297d3621663571dc85d2fb5d1d53b3b1 (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.c5
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: