From f45423544437d117d103a3406550dcd535c614b9 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sat, 22 Nov 2014 14:57:06 +0000 Subject: [PATCH] Add some missing initialisations. Spotted by valgrind, after I was testing all the Coverity bug fixes :-) --- dialog.c | 2 ++ ssh.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/dialog.c b/dialog.c index cbe95124..cc198775 100644 --- a/dialog.c +++ b/dialog.c @@ -381,6 +381,7 @@ union control *ctrl_droplist(struct controlset *s, char *label, char shortcut, c->listbox.percentwidth = percentage; c->listbox.ncols = 0; c->listbox.percentages = NULL; + c->listbox.hscroll = FALSE; return c; } @@ -397,6 +398,7 @@ union control *ctrl_draglist(struct controlset *s,char *label,char shortcut, c->listbox.percentwidth = 100; c->listbox.ncols = 0; c->listbox.percentages = NULL; + c->listbox.hscroll = FALSE; return c; } diff --git a/ssh.c b/ssh.c index d531dfd4..a7f5882f 100644 --- a/ssh.c +++ b/ssh.c @@ -10598,6 +10598,8 @@ static const char *ssh_init(void *frontend_handle, void **backend_handle, ssh->sent_console_eof = FALSE; ssh->got_pty = FALSE; ssh->bare_connection = FALSE; + ssh->X11_fwd_enabled = FALSE; + ssh->connshare = NULL; ssh->attempting_connshare = FALSE; *backend_handle = ssh;