mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 11:53:00 -04:00
Fix a write of uninitialized RAM in regression tests
Not actually harmful, but not something we should be doing. Found by valgrind.
This commit is contained in:
parent
b34abf3069
commit
68dc742bf1
@ -282,6 +282,8 @@ combined_write_cb(evutil_socket_t fd, short event, void *arg)
|
||||
if (len > both->nread)
|
||||
len = both->nread;
|
||||
|
||||
memset(buf, 'q', len);
|
||||
|
||||
len = write(fd, buf, len);
|
||||
if (len == -1)
|
||||
fprintf(stderr, "%s: write\n", __func__);
|
||||
|
Loading…
x
Reference in New Issue
Block a user