]> git.sesse.net Git - vlc/blobdiff - modules/misc/lua/libs/net.c
Add --data-path option. Access the src share directory now works from build tree.
[vlc] / modules / misc / lua / libs / net.c
index 4e4b5787ddab20c412440da156c413835ced19db..6d2c30a16a8d75bea51e97fcb90f8c8490d3e545 100644 (file)
@@ -132,7 +132,7 @@ static int vlclua_net_accept( lua_State *L )
     int i_fd = -1;
 
     unsigned int i_count = 1;
-    while( pi_fd[0][i_count] != -1 )
+    while( pi_fd[i_count] != -1 )
         i_count++;
 
     struct pollfd ufd[i_count+1];