]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
avoid Wuninitialized false positive in gcc-12ish
authorDamien Miller <djm@mindrot.org>
Mon, 19 Sep 2022 10:59:04 +0000 (20:59 +1000)
committerDamien Miller <djm@mindrot.org>
Mon, 19 Sep 2022 10:59:04 +0000 (20:59 +1000)
channels.c

index 6a78de9d5eba91e817439b455505e09b2495c649..e75a0cf9b50995826fb4b77bd9498e248ade9e87 100644 (file)
@@ -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;