mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-21 19:51:18 +00:00
don't try to execute a "" file
This commit is contained in:
parent
a76c7779a7
commit
8dead3b82d
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue