[vlc-commits] Go to new line if there is no option description

Rémi Denis-Courmont git at videolan.org
Tue Apr 12 21:33:03 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Apr 12 22:32:43 2011 +0300| [e9e44b78666d2f4da0b0251cc19b3e1caba7ec75] | committer: Rémi Denis-Courmont

Go to new line if there is no option description

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e9e44b78666d2f4da0b0251cc19b3e1caba7ec75
---

 modules/access/dtv/access.c |    2 +-
 src/libvlc.c                |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/access/dtv/access.c b/modules/access/dtv/access.c
index 94df171..20c7d55 100644
--- a/modules/access/dtv/access.c
+++ b/modules/access/dtv/access.c
@@ -302,7 +302,7 @@ vlc_module_begin ()
                 POLARIZATION_TEXT, POLARIZATION_LONGTEXT, false)
         change_string_list (polarization_vlc, polarization_user, NULL)
         change_safe ()
-    add_integer ("dvb-voltage", 13, " ", " ", true)
+    add_integer ("dvb-voltage", 13, "", "", true)
         change_integer_range (0, 18)
         change_private ()
         change_safe ()
diff --git a/src/libvlc.c b/src/libvlc.c
index 525e15d..06ebd6b 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -1663,6 +1663,7 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
             i_cur_width = b_description && !b_description_hack
                           ? i_width_description
                           : i_width;
+            if( !*psz_text ) strcpy(psz_text, " ");
             while( *psz_text )
             {
                 char *psz_parser, *psz_word;



More information about the vlc-commits mailing list