[MPlayer-cvslog] r38635 - in trunk/gui/dialog: equalizer.c preferences.c

ib subversion at mplayerhq.hu
Tue Jun 25 15:37:16 EEST 2024


Author: ib
Date: Tue Jun 25 15:37:16 2024
New Revision: 38635

Log:
Remove unused array elements.

An empty "" at the end is unnecessary. Only as many elements are needed
as the number of columns specified in the gtk_clist_new() call.

Modified:
   trunk/gui/dialog/equalizer.c
   trunk/gui/dialog/preferences.c

Modified: trunk/gui/dialog/equalizer.c
==============================================================================
--- trunk/gui/dialog/equalizer.c	Tue Jun 25 15:36:13 2024	(r38634)
+++ trunk/gui/dialog/equalizer.c	Tue Jun 25 15:37:16 2024	(r38635)
@@ -146,9 +146,8 @@ static void eqSetBands( int channel )
 
 static void eqSetChannelNames( void )
 {
- gchar * str[2];
+ gchar *str[1];
  gtk_clist_clear( GTK_CLIST( ChannelsList ) );
- str[1]="";
  str[0]=_(MSGTR_GUI_ChannelAll);
  gtk_clist_append( GTK_CLIST( ChannelsList ) ,str);
  if ( guiInfo.AudioChannels > 1 )

Modified: trunk/gui/dialog/preferences.c
==============================================================================
--- trunk/gui/dialog/preferences.c	Tue Jun 25 15:36:13 2024	(r38634)
+++ trunk/gui/dialog/preferences.c	Tue Jun 25 15:37:16 2024	(r38635)
@@ -1322,7 +1322,7 @@ void ShowPreferences( void )
  gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( CBSoftwareMixer ),soft_vol );
  {
   int    i = 0, c = 0, my_audio_driver = -1;
-  char * tmp[3]; tmp[2]="";
+  char *tmp[2];
   if ( CLADrivers ) gtk_clist_clear( GTK_CLIST( CLADrivers ) );
   while ( audio_out_drivers[i] )
    {
@@ -1368,7 +1368,7 @@ void ShowPreferences( void )
 
  {
   int i = 0, c = 0, my_video_driver = -1;
-  char * tmp[3]; tmp[2]="";
+  char *tmp[2];
   if ( CLVDrivers ) gtk_clist_clear( GTK_CLIST( CLVDrivers ) );
   while ( video_out_drivers[i] )
    if ( video_out_drivers[i++]->control( VOCTRL_GUISUPPORT,NULL ) == VO_TRUE )


More information about the MPlayer-cvslog mailing list