git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
913586c
)
Partially revert [20983]. Fix 'vlc -p foo'
author
Christophe Mutricy
<xtophe@videolan.org>
Thu, 16 Aug 2007 22:29:36 +0000
(22:29 +0000)
committer
Christophe Mutricy
<xtophe@videolan.org>
Thu, 16 Aug 2007 22:29:36 +0000
(22:29 +0000)
src/libvlc-common.c
patch
|
blob
|
history
diff --git
a/src/libvlc-common.c
b/src/libvlc-common.c
index
15e789e
..
601fe5a
100644
(file)
--- a/
src/libvlc-common.c
+++ b/
src/libvlc-common.c
@@
-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 ) )