[vlc-commits] zsh completion: fix argv passing
Rafaël Carré
git at videolan.org
Tue May 31 17:52:18 CEST 2016
vlc/vlc-2.2 | branch: master | Rafaël Carré <funman at videolan.org> | 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 <jb at videolan.org>
> 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;
More information about the vlc-commits
mailing list