diff options
-rw-r--r-- | main.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -367,6 +367,9 @@ static struct file * enter_command_line_file (name) char *name; { + if (name[0] == '\0') + fatal ("empty string invalid as file name"); + if (name[0] == '~') { char *expanded = tilde_expand (name); |