]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Oops; prevent further segfault during setup, which apparently only
authorSimon Tatham <anakin@pobox.com>
Mon, 14 Apr 2008 18:00:57 +0000 (18:00 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 14 Apr 2008 18:00:57 +0000 (18:00 +0000)
show up when building without debugging...

[originally from svn r7991]

unix/gtkfont.c

index 02eadb4915e478f87a086cd1498cad593ba0397b..0ad25c2b92a3a436e951b93790afaa33a5c79e8d 100644 (file)
@@ -2139,6 +2139,7 @@ unifontsel *unifontsel_new(const char *wintitle)
     int i;
 
     fs->inhibit_response = FALSE;
+    fs->selected = NULL;
 
     {
        /*
@@ -2400,7 +2401,6 @@ unifontsel *unifontsel_new(const char *wintitle)
      */
     unifontsel_setup_familylist(fs);
 
-    fs->selected = NULL;
     fs->selsize = fs->intendedsize = 13;   /* random default */
     gtk_widget_set_sensitive(fs->u.ok_button, FALSE);