(enter_command_line_file): Barf if NAME is "".

This commit is contained in:
Roland McGrath 1995-10-10 18:59:08 +00:00
parent e1c593016b
commit b1e6353edd

3
main.c
View file

@ -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);