mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
check that newname isn't "" rather than that it isn't null (never will be)
This commit is contained in:
parent
aae9157f43
commit
b8712f2211
1 changed files with 1 additions and 1 deletions
|
@ -513,7 +513,7 @@ CL_ParseDownload (void)
|
|||
const char *url = MSG_ReadString (net_message);
|
||||
const char *newname = MSG_ReadString (net_message);
|
||||
|
||||
if (newname) {
|
||||
if (*newname) {
|
||||
if (strncmp (newname, cls.downloadname->str,
|
||||
strlen (cls.downloadname->str))
|
||||
|| strstr (newname + strlen (cls.downloadname->str), "/")) {
|
||||
|
|
Loading…
Reference in a new issue