Skip to content

Commit 03d94a4

Browse files
committed
avoid Wuninitialized false positive in gcc-12ish
1 parent 9d95252 commit 03d94a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

channels.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ channel_new(struct ssh *ssh, char *ctype, int type, int rfd, int wfd, int efd,
369369
int nonblock)
370370
{
371371
struct ssh_channels *sc = ssh->chanctxt;
372-
u_int i, found;
372+
u_int i, found = 0;
373373
Channel *c;
374374
int r;
375375

0 commit comments

Comments
 (0)