From e756f1322837217ab392d627346986434555f6ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Thu, 19 Aug 2010 23:40:56 +0300 Subject: [PATCH] Remove now useless checks This reverts commit 10d0f724bc1ad48ed2b7729c612af01c4073b569. --- src/libvlc.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/libvlc.c b/src/libvlc.c index 4cffe55439..e7e2c19d2f 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 ), -- 2.39.2