From: simon Date: Mon, 28 Oct 2002 17:30:47 +0000 (+0000) Subject: Another deglobalisation bug: failed to initialise term->curstype. X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/093a75b8a54d97147cceb00084bd11ec47d4b905 Another deglobalisation bug: failed to initialise term->curstype. 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 --- diff --git a/terminal.c b/terminal.c index d222351d..eb5d9074 100644 --- a/terminal.c +++ b/terminal.c @@ -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;