[lua]: provide filename to chunkfile for add_temp_file (needed to unlink it)
This commit is contained in:
parent
405c6b26f4
commit
a31b3ee403
|
@ -197,7 +197,7 @@ static int _lua_chunkqueue_add_file(lua_State *L, gboolean tempfile) {
|
|||
if (tempfile) {
|
||||
li_chunkqueue_append_file_fd(cq, NULL, start, length, fd);
|
||||
} else {
|
||||
li_chunkqueue_append_tempfile_fd(cq, NULL, start, length, fd);
|
||||
li_chunkqueue_append_tempfile_fd(cq, g_string_new_len(filename, len), start, length, fd);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue