From f45e96eec2681463572d5d996ac832626809ddd7 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 5 Oct 2016 10:33:09 +0200 Subject: 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(-) (limited to 'trans') 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: -- cgit v1.2.3