shithub: sox

Download patch

ref: 2d45dd5eabb24e641f5ed58629cdba1e0686a638
parent: 091dd88f194e52fbd8f806993d711e0cb798073a
author: rrt <rrt>
date: Fri Jan 12 05:45:32 EST 2007

Gah\! return the newly created Lua state\!

--- a/src/stlua.c
+++ b/src/stlua.c
@@ -120,10 +120,11 @@
   /* TODO: If concerned about security, lock down here: in particular,
      don't open the io library. */
   luaL_openlibs(L);
-
   luaopen_int(L);
 
   /* Create st_sample_t array userdata type */
   createmeta(L, handle);
   luaL_register(L, NULL, meta);
+
+  return L;
 }