mirror of
https://github.com/bobbimanners/emailler.git
synced 2025-02-06 08:30:02 +00:00
Interpret empty input as intend to exit.
This commit is contained in:
parent
fc61ee5358
commit
66ac29285b
@ -187,7 +187,7 @@ char *get_argument(char arg, const char *name, const char *history,
|
||||
|
||||
snprintf(prompt, sizeof(prompt), "%s? ", name);
|
||||
val = linenoise(prompt);
|
||||
if (!val)
|
||||
if (!val || !*val)
|
||||
{
|
||||
putchar('\n');
|
||||
exit(EXIT_FAILURE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user