[vlc-devel] commit: zsh: fix 2b068d3ac15a96cdd46bd513e89de4452137a656 (NULL printed). ( Rémi Duraffort )

git version control git at videolan.org
Mon Jan 4 10:38:59 CET 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Jan  4 10:28:17 2010 +0100| [40f4dab0fc3b2c969588bedbb3ce9148030d7264] | committer: Rémi Duraffort 

zsh: fix 2b068d3ac15a96cdd46bd513e89de4452137a656 (NULL printed).

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

 extras/analyser/zsh.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/extras/analyser/zsh.cpp b/extras/analyser/zsh.cpp
index 249f812..b264082 100644
--- a/extras/analyser/zsh.cpp
+++ b/extras/analyser/zsh.cpp
@@ -441,7 +441,8 @@ void PrintOption( char *psz_option, char i_short, char *psz_exclusive,
             printf( ":%s:%s\"\\\n", psz_longtext, psz_args );
         else
             printf( "\"\\\n" );
-        printf( "  \"(--%s%s)-%c[%s]", psz_option, psz_exclusive,
+
+        printf( "  \"(--%s%s)-%c[%s]", psz_option, psz_exclusive ? psz_exclusive : "",
                 i_short, psz_text );
         if( psz_args )
             printf( ":%s:%s\"\\\n", psz_longtext, psz_args );




More information about the vlc-devel mailing list