[vlc-commits] HTTP interface: fix infinite loop

Jean-Baptiste Kempf git at videolan.org
Mon Dec 9 19:39:37 CET 2013


vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Sep 29 22:47:08 2013 +0200| [528d52bf30d9c0926ef2db6a8274ec47725454e9] | committer: Felix Paul Kühne

HTTP interface: fix infinite loop

(cherry picked from commit 5f58853765d3891c9fe7c12b13525ab071eac1eb)
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=528d52bf30d9c0926ef2db6a8274ec47725454e9
---

 share/lua/intf/modules/httprequests.lua |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/share/lua/intf/modules/httprequests.lua b/share/lua/intf/modules/httprequests.lua
index bf41c3c..cbac38a 100644
--- a/share/lua/intf/modules/httprequests.lua
+++ b/share/lua/intf/modules/httprequests.lua
@@ -52,7 +52,6 @@ function strsplit(text, delimiter)
     end
     local i=1
     while 1 do
-        i=i+1
         local first, last = strfind(text, delimiter, pos)
         if first then -- found?
             tinsert(list,i, strsub(text, pos, first-1))
@@ -61,6 +60,7 @@ function strsplit(text, delimiter)
             tinsert(list,i, strsub(text, pos))
         break
         end
+        i = i+1
     end
     return list
 end



More information about the vlc-commits mailing list