1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-31 00:03:07 +03:00

examples: Fix else branch.

CID #1127816
This commit is contained in:
Andreas Schneider
2013-11-27 20:16:09 +01:00
parent 75e61f498b
commit d61fcbf7b2

View File

@ -143,13 +143,14 @@ static void select_loop(ssh_session session,ssh_channel channel){
if(lus==0){
channel_free(channel);
channel=channels[0]=NULL;
} else
} else {
ret = write(2, buffer, lus);
if (ret < 0) {
fprintf(stderr, "Error writing to stderr: %s",
strerror(errno));
return;
}
}
}
}
if(channel && channel_is_closed(channel)){