mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +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
|
||||
if (!cls.download) {
|
||||
dstring_t *name;
|
||||
dstring_t *name = dstring_newstr();
|
||||
const char *path;
|
||||
const char *fname;
|
||||
|
||||
|
@ -518,6 +518,7 @@ CL_ParseDownload (void)
|
|||
CL_RequestNextDownload ();
|
||||
return;
|
||||
}
|
||||
dstring_delete (name);
|
||||
}
|
||||
|
||||
Qwrite (cls.download, net_message->message->data + net_message->readcount,
|
||||
|
|
Loading…
Reference in a new issue