summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1995-10-10 18:59:08 +0000
committerRoland McGrath <roland@redhat.com>1995-10-10 18:59:08 +0000
commitb1e6353edd2ad4fda932a891cba38265f2a08635 (patch)
tree05338303ce2503798356c6554db7bae4261c3041 /main.c
parente1c593016bd338f80ec7d4e06ca923e810612d3a (diff)
downloadgunmake-b1e6353edd2ad4fda932a891cba38265f2a08635.tar.gz
(enter_command_line_file): Barf if NAME is "".
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.c b/main.c
index 4cfb4d7..17cdb5c 100644
--- a/main.c
+++ b/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);