From: Roland McGrath Date: Tue, 10 Oct 1995 18:59:08 +0000 (+0000) Subject: (enter_command_line_file): Barf if NAME is "". X-Git-Tag: 3.74.1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1e6353edd2ad4fda932a891cba38265f2a08635;p=thirdparty%2Fmake.git (enter_command_line_file): Barf if NAME is "". --- diff --git a/main.c b/main.c index 4cfb4d7e..17cdb5c9 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);