From 8dead3b82d74cbac09204b55ddc72040fa53a540 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 14 Feb 2001 16:45:58 +0000 Subject: [PATCH] don't try to execute a "" file --- source/cmd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/cmd.c b/source/cmd.c index b5d159b..6ab0089 100644 --- a/source/cmd.c +++ b/source/cmd.c @@ -306,6 +306,8 @@ Cmd_Exec_File (char *path) int len; QFile *file; + if (!path || !*path) + return; if ((file = Qopen (path, "r")) != NULL) { len = COM_filelength (file); f = (char *) Hunk_TempAlloc (len + 1);