From b1e6353edd2ad4fda932a891cba38265f2a08635 Mon Sep 17 00:00:00 2001
From: Roland McGrath <roland@redhat.com>
Date: Tue, 10 Oct 1995 18:59:08 +0000
Subject: [PATCH] (enter_command_line_file): Barf if NAME is "".

---
 main.c | 3 +++
 1 file changed, 3 insertions(+)

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);