[vlc-commits] lua: fix potentially uninitialized value
Rémi Denis-Courmont
git at videolan.org
Fri Aug 21 19:14:25 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Aug 21 19:42:40 2015 +0300| [5043b4c818cf446c7db4266d4863fca784d90e5f] | committer: Rémi Denis-Courmont
lua: fix potentially uninitialized value
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5043b4c818cf446c7db4266d4863fca784d90e5f
---
modules/lua/libs/net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/lua/libs/net.c b/modules/lua/libs/net.c
index 0df586a..b96c2d8 100644
--- a/modules/lua/libs/net.c
+++ b/modules/lua/libs/net.c
@@ -350,7 +350,7 @@ static int vlclua_net_poll( lua_State *L )
}
vlc_interrupt_t *oint = vlclua_set_interrupt( L );
- int ret = 1, val;
+ int ret = 1, val = -1;
do
{
More information about the vlc-commits
mailing list