[MPlayer-cvslog] CVS: main/Gui/mplayer/gtk menu.c,1.35,1.36

Dominik Mierzejewski CVS syncmail at mplayerhq.hu
Thu Dec 15 21:40:02 CET 2005


CVS change done by Dominik Mierzejewski CVS

Update of /cvsroot/mplayer/main/Gui/mplayer/gtk
In directory mail:/var2/tmp/cvs-serv7225

Modified Files:
	menu.c 
Log Message:
Avoid gcc warnings:
'...' might be used uninitialized in this function

In this case 'H', 'N', 'D', and 'F' can indeed be
used unitialized, thus possibly causing all sorts of problems.

Patch by Peter Breitenlohner



Index: menu.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/gtk/menu.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- menu.c	8 Dec 2005 22:12:56 -0000	1.35
+++ menu.c	15 Dec 2005 20:39:59 -0000	1.36
@@ -594,8 +594,6 @@
     N=AddMenuCheckItem( window1, (const char*)normal_xpm, Menu,MSGTR_MENU_NormalSize"      ",b1,evNormalSize );
     D=AddMenuCheckItem( window1, (const char*)double_xpm, Menu,MSGTR_MENU_DoubleSize,b2,evDoubleSize );
     F=AddMenuCheckItem( window1, (const char*)fs_xpm, Menu,MSGTR_MENU_FullScreen,appMPlayer.subWindow.isFullScreen,evFullScreen );
-   }
-
   if ( !gtkShowVideoWindow && !guiIntfStruct.Playing )
    {
     gtk_widget_set_sensitive( H,FALSE );
@@ -603,6 +601,7 @@
     gtk_widget_set_sensitive( D,FALSE );
     gtk_widget_set_sensitive( F,FALSE );
    }
+   }
 
   AddSeparator( Menu );
   AddMenuItem( window1, (const char*)exit_xpm, Menu,MSGTR_MENU_Exit, evExit );




More information about the MPlayer-cvslog mailing list