summaryrefslogtreecommitdiff
path: root/trans/crash.c
diff options
context:
space:
mode:
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: