Another deglobalisation bug: failed to initialise term->curstype.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 28 Oct 2002 17:30:47 +0000 (17:30 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 28 Oct 2002 17:30:47 +0000 (17:30 +0000)
Thanks to valgrind for finding this one (aha! I knew there would be
benefits from doing a Unix port!).

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

terminal.c

index d222351..eb5d907 100644 (file)
@@ -319,6 +319,7 @@ Terminal *term_init(void *frontend)
     term->repeat_off = FALSE;
     term->termstate = TOPLEVEL;
     term->selstate = NO_SELECTION;
+    term->curstype = 0;
 
     term->screen = term->alt_screen = term->scrollback = NULL;
     term->disptop = 0;