gnome-terminal r3407 - branches/gnome-2-26/src



Author: chpe
Date: Mon Mar 30 17:18:42 2009
New Revision: 3407
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=3407&view=rev

Log:
Fix uninitialised memory read when saving the terminal window's state.
Bug #577025.

Modified:
   branches/gnome-2-26/src/terminal-window.c

Modified: branches/gnome-2-26/src/terminal-window.c
==============================================================================
--- branches/gnome-2-26/src/terminal-window.c	(original)
+++ branches/gnome-2-26/src/terminal-window.c	Mon Mar 30 17:18:42 2009
@@ -3556,10 +3556,11 @@
       TerminalScreen *screen;
       char *tab_group;
 
+      screen = terminal_screen_container_get_screen (GTK_WIDGET (lt->data));
+
       tab_group = g_strdup_printf ("Terminal%p", screen);
       g_ptr_array_add (tab_names_array, tab_group);
 
-      screen = terminal_screen_container_get_screen (GTK_WIDGET (lt->data));
       terminal_screen_save_config (screen, key_file, tab_group);
 
       if (screen == active_screen)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]