don't try to execute a "" file

This commit is contained in:
Bill Currie 2001-02-14 16:45:58 +00:00
parent a76c7779a7
commit 8dead3b82d

View file

@ -306,6 +306,8 @@ Cmd_Exec_File (char *path)
int len; int len;
QFile *file; QFile *file;
if (!path || !*path)
return;
if ((file = Qopen (path, "r")) != NULL) { if ((file = Qopen (path, "r")) != NULL) {
len = COM_filelength (file); len = COM_filelength (file);
f = (char *) Hunk_TempAlloc (len + 1); f = (char *) Hunk_TempAlloc (len + 1);