]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
We just got mailed a Dr Watson log which suggests I failed to
authorSimon Tatham <anakin@pobox.com>
Wed, 8 Jan 2003 09:15:56 +0000 (09:15 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 8 Jan 2003 09:15:56 +0000 (09:15 +0000)
initialise term->paste_len during initialisation, and indeed looking
at the code confirms this. I'm puzzled as to why valgrind didn't
spot this in pterm, though, since it's all in cross-platform code!

[originally from svn r2494]

terminal.c

index 02c94d742500f326527966dcdced5ac521748170..1cdf098f9b9535d7e00a1e9df7857db6e5cadebe 100644 (file)
@@ -320,6 +320,7 @@ Terminal *term_init(Config *mycfg, void *frontend)
     strcpy(term->id_string, "\033[?6c");
     term->last_blink = term->last_tblink = 0;
     term->paste_buffer = NULL;
+    term->paste_len = 0;
     term->last_paste = 0;
     bufchain_init(&term->inbuf);
     bufchain_init(&term->printer_buf);