]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Add some missing initialisations.
authorSimon Tatham <anakin@pobox.com>
Sat, 22 Nov 2014 14:57:06 +0000 (14:57 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 22 Nov 2014 15:26:16 +0000 (15:26 +0000)
Spotted by valgrind, after I was testing all the Coverity bug fixes :-)

dialog.c
ssh.c

index cbe95124decc7b238d707500d183dc42c806025a..cc1987751e0ef32aa507f3b4e641b13127c87d99 100644 (file)
--- 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 d531dfd49d2d95fc956f4f8e0635608f0d7099ca..a7f5882f7dff2f87319578f8c559a884174e53cc 100644 (file)
--- 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;