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:
parent
ef5f289fc6
commit
f7d23ae746
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user