[vlc-devel] [PATCH 1/2] lua: input: fix uninitialized autoselect variable

Thomas Guillem thomas at gllm.fr
Mon Sep 23 13:39:56 CEST 2019


set merged, thanks!

On Fri, Sep 20, 2019, at 16:16, Alexandre Janniaux wrote:
> Issued from c9e2717771dfe0c519e51dc7b03c197bd805069c refactor.
> ---
>  modules/lua/libs/input.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/modules/lua/libs/input.c b/modules/lua/libs/input.c
> index 6a4b14cf2e..4be132ecba 100644
> --- a/modules/lua/libs/input.c
> +++ b/modules/lua/libs/input.c
> @@ -637,9 +637,9 @@ static int vlclua_input_add_subtitle(lua_State *L, 
> bool b_path)
>      vlc_player_t *player = vlclua_get_player_internal(L);
> 
>      if (!lua_isstring(L, 1))
> -        return luaL_error( L, "vlc.player.add_subtitle() usage: 
> (path)" );
> +        return luaL_error( L, "vlc.player.add_subtitle() usage: (path, 
> autoselect=false)" );
> 
> -    bool autoselect;
> +    bool autoselect = false;
>      if (lua_gettop(L) >= 2)
>          autoselect = lua_toboolean(L, 2);
> 
> --
> 2.23.0
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list