]> git.sesse.net Git - vlc/commitdiff
- pp_shortcuts is always true; do not check
authorRémi Denis-Courmont <rem@videolan.org>
Sat, 4 Aug 2007 18:24:47 +0000 (18:24 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sat, 4 Aug 2007 18:24:47 +0000 (18:24 +0000)
- remove apparently harmful "continue" with an always true condition

src/libvlc-common.c

index a2f93e9050c72ee6f19cec0ecda75d279abae89a..68e87fa58e1897be57ddb6d376e482aa16d0e1f3 100644 (file)
@@ -1376,15 +1376,13 @@ static void Usage( libvlc_int_t *p_this, char const *psz_module_name )
         if( psz_module_name && strcmp( psz_module_name,
                                        p_parser->psz_object_name ) )
         {
-            const char **pp_shortcut = p_parser->pp_shortcuts;
+            const char *const *pp_shortcut = p_parser->pp_shortcuts;
             while( *pp_shortcut )
             {
                 if( !strcmp( psz_module_name, *pp_shortcut ) )
                     break;
                 pp_shortcut ++;
             }
-            if( !*pp_shortcut )
-                continue;
         }
 
         /* Ignore modules without config options */
@@ -1770,7 +1768,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;
-            while( pp_shortcut && *pp_shortcut )
+            while( *pp_shortcut )
             {
                 if( strcmp( *pp_shortcut, p_parser->psz_object_name ) )
                 {