1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Prevent another segfault. Oops.

[originally from svn r2178]
This commit is contained in:
Simon Tatham 2002-11-01 18:51:22 +00:00
parent ef5f289fc6
commit f7d23ae746

View File

@ -111,6 +111,9 @@ void try_output(int is_stderr)
void *senddata;
int sendlen, ret;
if (bufchain_size(chain) == 0)
return;
bufchain_prefix(chain, &senddata, &sendlen);
ret = write(fd, senddata, sendlen);
if (ret > 0)