Partially revert [20983]. Fix 'vlc -p foo'
authorChristophe Mutricy <xtophe@videolan.org>
Thu, 16 Aug 2007 22:29:36 +0000 (22:29 +0000)
committerChristophe Mutricy <xtophe@videolan.org>
Thu, 16 Aug 2007 22:29:36 +0000 (22:29 +0000)
src/libvlc-common.c

index 15e789e..601fe5a 100644 (file)
@@ -1387,6 +1387,8 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
                     break;
                 pp_shortcut ++;
             }
+            if( !*pp_shortcut )
+                continue;
         }
 
         /* Ignore modules without config options */
@@ -1771,7 +1773,7 @@ static void ListModules( libvlc_int_t *p_this, vlc_bool_t b_verbose )
 
         if( b_verbose )
         {
-            const char **pp_shortcut = p_parser->pp_shortcuts;
+            const char *const *pp_shortcut = p_parser->pp_shortcuts;
             while( *pp_shortcut )
             {
                 if( strcmp( *pp_shortcut, p_parser->psz_object_name ) )