From: Simon Tatham Date: Mon, 14 Apr 2008 18:00:57 +0000 (+0000) Subject: Oops; prevent further segfault during setup, which apparently only X-Git-Tag: 0.61~249^2~4 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=cb18f9a6ebd956748f45ce06cd5e8e5f7fc76d30;hp=-c;p=PuTTY.git Oops; prevent further segfault during setup, which apparently only show up when building without debugging... [originally from svn r7991] --- cb18f9a6ebd956748f45ce06cd5e8e5f7fc76d30 diff --git a/unix/gtkfont.c b/unix/gtkfont.c index 02eadb49..0ad25c2b 100644 --- a/unix/gtkfont.c +++ b/unix/gtkfont.c @@ -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);