diff options
author | Roland McGrath <roland@redhat.com> | 1995-10-10 18:59:08 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 1995-10-10 18:59:08 +0000 |
commit | b1e6353edd2ad4fda932a891cba38265f2a08635 (patch) | |
tree | 05338303ce2503798356c6554db7bae4261c3041 | |
parent | e1c593016bd338f80ec7d4e06ca923e810612d3a (diff) | |
download | gunmake-b1e6353edd2ad4fda932a891cba38265f2a08635.tar.gz |
(enter_command_line_file): Barf if NAME is "".
-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); |