[vlc-commits] commit: Remove now useless checks ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Thu Aug 19 22:52:26 CEST 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Aug 19 23:40:56 2010 +0300| [e756f1322837217ab392d627346986434555f6ac] | committer: Rémi Denis-Courmont
Remove now useless checks
This reverts commit 10d0f724bc1ad48ed2b7729c612af01c4073b569.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e756f1322837217ab392d627346986434555f6ac
---
src/libvlc.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/libvlc.c b/src/libvlc.c
index 4cffe55..e7e2c19 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -1282,7 +1282,7 @@ print_help_section( const module_t *m, const module_config_t *p_item,
{
utf8_fprintf( stdout, RED" %s:\n"GRAY,
module_gettext( m, p_item->psz_text ) );
- if( b_description && p_item->psz_longtext && *p_item->psz_longtext )
+ if( b_description && p_item->psz_longtext )
utf8_fprintf( stdout, MAGENTA" %s\n"GRAY,
module_gettext( m, p_item->psz_longtext ) );
}
@@ -1290,7 +1290,7 @@ print_help_section( const module_t *m, const module_config_t *p_item,
{
utf8_fprintf( stdout, " %s:\n",
module_gettext( m, p_item->psz_text ) );
- if( b_description && p_item->psz_longtext && *p_item->psz_longtext )
+ if( b_description && p_item->psz_longtext )
utf8_fprintf( stdout, " %s\n",
module_gettext(m, p_item->psz_longtext ) );
}
@@ -1484,8 +1484,7 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
utf8_fprintf( stdout, "\n %s\n",
module_gettext( p_parser, p_item->psz_text ) );
}
- if( b_description && p_item->psz_longtext
- && *p_item->psz_longtext )
+ if( b_description && p_item->psz_longtext )
{
if( b_color )
utf8_fprintf( stdout, CYAN " %s\n" GRAY,
@@ -1731,8 +1730,7 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
}
}
- if( b_description_hack && p_item->psz_longtext
- && *p_item->psz_longtext )
+ if( b_description_hack && p_item->psz_longtext )
{
sprintf( psz_buffer, "%s%s",
module_gettext( p_parser, p_item->psz_longtext ),
More information about the vlc-commits
mailing list