mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-26 14:00:56 +00:00
(enter_command_line_file): Barf if NAME is "".
This commit is contained in:
parent
e1c593016b
commit
b1e6353edd
1 changed files with 3 additions and 0 deletions
3
main.c
3
main.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue