check that newname isn't "" rather than that it isn't null (never will be)
This commit is contained in:
parent
aae9157f43
commit
b8712f2211
|
@ -513,7 +513,7 @@ CL_ParseDownload (void)
|
||||||
const char *url = MSG_ReadString (net_message);
|
const char *url = MSG_ReadString (net_message);
|
||||||
const char *newname = MSG_ReadString (net_message);
|
const char *newname = MSG_ReadString (net_message);
|
||||||
|
|
||||||
if (newname) {
|
if (*newname) {
|
||||||
if (strncmp (newname, cls.downloadname->str,
|
if (strncmp (newname, cls.downloadname->str,
|
||||||
strlen (cls.downloadname->str))
|
strlen (cls.downloadname->str))
|
||||||
|| strstr (newname + strlen (cls.downloadname->str), "/")) {
|
|| strstr (newname + strlen (cls.downloadname->str), "/")) {
|
||||||
|
|
Loading…
Reference in New Issue