Fixed use of a dstring without allocating one.

This commit is contained in:
Brian Koropoff 2003-02-15 21:26:15 +00:00
parent fc37941ca5
commit d626575091

View file

@ -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,