Skip to content
Snippets Groups Projects
Commit 91d1c116 authored by LJ Sonic's avatar LJ Sonic
Browse files

Fix io.open() crashing the client sometimes

parent 28d5b79f
No related branches found
No related tags found
1 merge request!2578Fix io.open() crashing the client sometimes
Pipeline #6491 passed
......@@ -606,7 +606,7 @@ void AddLuaFileTransfer(const char *filename, const char *mode)
prevnext = &((*prevnext)->next);
// Allocate file transfer information and append it to the transfer list
filetransfer = malloc(sizeof(luafiletransfer_t));
filetransfer = calloc(1, sizeof(luafiletransfer_t));
if (!filetransfer)
I_Error("AddLuaFileTransfer: Out of memory\n");
*prevnext = filetransfer;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment