session MAINTENANCE some false warnings
diff --git a/src/io.c b/src/io.c
index 42e8d6a..507d5e5 100644
--- a/src/io.c
+++ b/src/io.c
@@ -561,6 +561,7 @@
     }
 
     fds.events = POLLIN;
+    fds.revents = 0;
 
     errno = 0;
     while (((ret = poll(&fds, 1, 0)) == -1) && (errno == EINTR));
@@ -840,7 +841,7 @@
 static void
 nc_write_error(struct wclb_arg *arg, struct nc_server_error *err, const char *prefix)
 {
-    uint16_t i, pref_len;
+    uint16_t i, pref_len = 0;
     char str_sid[11];
 
     if (prefix) {
diff --git a/src/session_server_ssh.c b/src/session_server_ssh.c
index 50e0599..e98453a 100644
--- a/src/session_server_ssh.c
+++ b/src/session_server_ssh.c
@@ -824,7 +824,7 @@
     uint32_t i;
     ssh_key pub_key;
     const char *username = NULL;
-    int ret;
+    int ret = 0;
 
     /* LOCK */
     pthread_mutex_lock(&server_opts.authkey_lock);