In term_init(), copy stuff out of the conf _before_ calling
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 13 Sep 2011 10:27:00 +0000 (10:27 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 13 Sep 2011 10:27:00 +0000 (10:27 +0000)
power_on(), since the latter calls term_schedule_cblink which expects
term->blink_cur to have been initialised.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9278 cda61777-01e9-0310-a592-d414129be87e

terminal.c

index 7aa0b65..08ce42e 100644 (file)
@@ -1538,6 +1538,8 @@ Terminal *term_init(Conf *myconf, struct unicode_data *ucsdata,
     term->selstate = NO_SELECTION;
     term->curstype = 0;
 
+    term_copy_stuff_from_conf(term);
+
     term->screen = term->alt_screen = term->scrollback = NULL;
     term->tempsblines = 0;
     term->alt_sblines = 0;
@@ -1576,8 +1578,6 @@ Terminal *term_init(Conf *myconf, struct unicode_data *ucsdata,
     term->basic_erase_char.cc_next = 0;
     term->erase_char = term->basic_erase_char;
 
-    term_copy_stuff_from_conf(term);
-
     return term;
 }