summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
18064c1)
This informs valgrind that it's properly initialized.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
dprint(FD_NET, "server: connect from %s\n", from);
dprint(FD_NET, "server: connect from %s\n", from);
- sk_out = smalloc(sizeof(*sk_out));
+ sk_out = scalloc(1, sizeof(*sk_out));
if (!sk_out) {
close(sk);
return -1;
if (!sk_out) {
close(sk);
return -1;