vlc/vlc-2.2 | branch: master | Rafaël Carré <[email protected]> | Wed Feb  3 
19:31:28 2016 +0100| [d2ddf1a2f5c95253a07461db7a50047415a40acb] | committer: 
Jean-Baptiste Kempf

zsh completion: fix argv passing

(cherry picked from commit c85a2dd8a43e5036614a6a1998a9cddb6c28ca05)
Signed-off-by: Jean-Baptiste Kempf <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=d2ddf1a2f5c95253a07461db7a50047415a40acb
---

 extras/analyser/zsh.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/extras/analyser/zsh.cpp b/extras/analyser/zsh.cpp
index 512cb01..f1f8e1a 100644
--- a/extras/analyser/zsh.cpp
+++ b/extras/analyser/zsh.cpp
@@ -221,7 +221,7 @@ static void ParseModule(const module_t *mod)
 
 int main(int argc, const char **argv)
 {
-    libvlc_instance_t *libvlc = libvlc_new(argc, argv);
+    libvlc_instance_t *libvlc = libvlc_new(argc - 1, argv + 1);
     if (!libvlc)
         return 1;
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to