projects
/
platform
/
upstream
/
make.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1c5930
)
(enter_command_line_file): Barf if NAME is "".
author
Roland McGrath
<roland@redhat.com>
Tue, 10 Oct 1995 18:59:08 +0000
(18:59 +0000)
committer
Roland McGrath
<roland@redhat.com>
Tue, 10 Oct 1995 18:59:08 +0000
(18:59 +0000)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 4cfb4d7edce2abc901db8cea4a1ef9b1ce8b5a08..17cdb5c9aceafa86d63071cc2d8a50f3689c3d41 100644
(file)
--- 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);