#include "trackerlogic.h"
#ifdef WANT_NO_AUTO_FREE
-#define OT_IOB_INIT iob_init
+#define OT_IOB_INIT(B) bzero(B, sizeof(io_batch))
#else
-#define OT_IOB_INIT iob_init_autofree
+#define OT_IOB_INIT(B) iob_init_autofree(B, 0)
#endif
#define OT_MAXMULTISCRAPE_COUNT 64
memcpy(outbuf, ws->reply + written_size, ws->reply_size - written_size);
if (!cookie->batch) {
cookie->batch = malloc(sizeof(io_batch));
- OT_IOB_INIT(cookie->batch, 0);
+ OT_IOB_INIT(cookie->batch);
cookie->batches = 1;
}
iovec_free(&iovec_entries, &iovector);
HTTPERROR_500;
}
- OT_IOB_INIT(cookie->batch, 0);
+ OT_IOB_INIT(cookie->batch);
cookie->batches = 1;
}
current = cookie->batch + cookie->batches - 1;
if (new_batch) {
cookie->batch = new_batch;
current = cookie->batch + cookie->batches++;
- OT_IOB_INIT(current, 0);
+ OT_IOB_INIT(current);
}
}
iob_addbuf_free(current, iovector[i].iov_base, iovector[i].iov_len);