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:
Nick Mathewson 2010-03-12 20:38:25 -05:00
parent b34abf3069
commit 68dc742bf1

View File

@ -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__);