mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-06 15:51:25 +00:00
Fixed use of a dstring without allocating one.
This commit is contained in:
parent
fc37941ca5
commit
d626575091
1 changed files with 2 additions and 1 deletions
|
@ -488,7 +488,7 @@ CL_ParseDownload (void)
|
||||||
}
|
}
|
||||||
// open the file if not opened yet
|
// open the file if not opened yet
|
||||||
if (!cls.download) {
|
if (!cls.download) {
|
||||||
dstring_t *name;
|
dstring_t *name = dstring_newstr();
|
||||||
const char *path;
|
const char *path;
|
||||||
const char *fname;
|
const char *fname;
|
||||||
|
|
||||||
|
@ -518,6 +518,7 @@ CL_ParseDownload (void)
|
||||||
CL_RequestNextDownload ();
|
CL_RequestNextDownload ();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
dstring_delete (name);
|
||||||
}
|
}
|
||||||
|
|
||||||
Qwrite (cls.download, net_message->message->data + net_message->readcount,
|
Qwrite (cls.download, net_message->message->data + net_message->readcount,
|
||||||
|
|
Loading…
Reference in a new issue