summaryrefslogtreecommitdiff
path: root/src/lua5/imlua_capture.c
diff options
context:
space:
mode:
authorscuri <scuri>2010-07-18 03:04:23 +0000
committerscuri <scuri>2010-07-18 03:04:23 +0000
commit34f4dcea9afc19dcaf929b0ef4170a6b6940ab42 (patch)
tree05d191fb216ae110b8d2d0121c239a7aed48ca4d /src/lua5/imlua_capture.c
parentc315a7256b42812a13e80e3bc4a48a2dc1b7170d (diff)
*** empty log message ***
Diffstat (limited to 'src/lua5/imlua_capture.c')
-rw-r--r--src/lua5/imlua_capture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua5/imlua_capture.c b/src/lua5/imlua_capture.c
index 181cbd0..fa35dea 100644
--- a/src/lua5/imlua_capture.c
+++ b/src/lua5/imlua_capture.c
@@ -2,7 +2,7 @@
* \brief IM Lua 5 Binding
*
* See Copyright Notice in im_lib.h
- * $Id: imlua_capture.c,v 1.4 2010/06/07 20:59:32 scuri Exp $
+ * $Id: imlua_capture.c,v 1.5 2010/07/18 03:04:23 scuri Exp $
*/
#include <string.h>
@@ -288,7 +288,7 @@ static int imluaVideoCaptureGetAttributeList (lua_State *L)
int i;
attribs = imVideoCaptureGetAttributeList(vc, &num_attrib);
- lua_newtable(L);
+ lua_createtable(L, num_attrib, 0);
for (i = 0; i < num_attrib; i++)
{
lua_pushstring(L, attribs[i]);