From 053739a46d44f088a28761545e485f4faafc21e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Wed, 3 Mar 2010 16:27:11 +0100 Subject: [PATCH] [lua]: chunkqueue: fix file<->tempfile handling --- src/main/chunk_lua.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;