Commit a36325f8 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

lua: assert that we have an item.

parent b170613f
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <lua.h> /* Low level lua C API */ #include <lua.h> /* Low level lua C API */
#include <lauxlib.h> /* Higher level C API */ #include <lauxlib.h> /* Higher level C API */
#include <assert.h>
#include "input.h" #include "input.h"
#include "playlist.h" #include "playlist.h"
...@@ -370,6 +371,7 @@ static const luaL_Reg vlclua_input_item_reg[] = { ...@@ -370,6 +371,7 @@ static const luaL_Reg vlclua_input_item_reg[] = {
void luaopen_input_item( lua_State *L, input_item_t *item ) void luaopen_input_item( lua_State *L, input_item_t *item )
{ {
assert(item);
vlclua_input_item_get( L, item ); vlclua_input_item_get( L, item );
lua_setfield( L, -2, "item" ); lua_setfield( L, -2, "item" );
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment