diff --git a/src/main/chunk_lua.c b/src/main/chunk_lua.c index 3219ada..342c0dc 100644 --- a/src/main/chunk_lua.c +++ b/src/main/chunk_lua.c @@ -195,9 +195,9 @@ 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, g_string_new_len(filename, len), start, length, fd); + } else { + li_chunkqueue_append_file_fd(cq, NULL, start, length, fd); } return 0;