[vlc-commits] zsh completion: fix argv passing

Rafaël Carré git at videolan.org
Wed Feb 3 19:32:03 CET 2016


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Feb  3 19:31:28 2016 +0100| [c85a2dd8a43e5036614a6a1998a9cddb6c28ca05] | committer: Rafaël Carré

zsh completion: fix argv passing

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

 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;
 



More information about the vlc-commits mailing list