mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-27 02:02:26 +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;
|
void *senddata;
|
||||||
int sendlen, ret;
|
int sendlen, ret;
|
||||||
|
|
||||||
|
if (bufchain_size(chain) == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
bufchain_prefix(chain, &senddata, &sendlen);
|
bufchain_prefix(chain, &senddata, &sendlen);
|
||||||
ret = write(fd, senddata, sendlen);
|
ret = write(fd, senddata, sendlen);
|
||||||
if (ret > 0)
|
if (ret > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user