From 3d90359d10dcf18f06e244462381b05b0db01bd8 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 8 Jan 2003 09:15:56 +0000 Subject: [PATCH] We just got mailed a Dr Watson log which suggests I failed to 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/terminal.c b/terminal.c index 02c94d74..1cdf098f 100644 --- a/terminal.c +++ b/terminal.c @@ -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);