summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2022-09-19 20:59:04 +1000
committerDamien Miller <djm@mindrot.org>2022-09-19 20:59:04 +1000
commit03d94a47207d58b3db37eba4f87eb6ae5a63168a (patch)
tree35f1cf124748f641a35410f87763abc6d7248fcd
parent9d952529113831fb3071ab6e408d2726fd72e771 (diff)
avoid Wuninitialized false positive in gcc-12ish
-rw-r--r--channels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels.c b/channels.c
index 6a78de9d..e75a0cf9 100644
--- a/channels.c
+++ b/channels.c
@@ -369,7 +369,7 @@ channel_new(struct ssh *ssh, char *ctype, int type, int rfd, int wfd, int efd,
int nonblock)
{
struct ssh_channels *sc = ssh->chanctxt;
- u_int i, found;
+ u_int i, found = 0;
Channel *c;
int r;