probe.os = FIO_OS;
probe.arch = FIO_ARCH;
+ probe.bpp = sizeof(void *);
+
return fio_net_send_cmd(server_fd, FIO_NET_CMD_PROBE, &probe, sizeof(probe), cmd->tag);
}
size_t size;
int i;
- size = sizeof(*je) + thread_number * sizeof(char);
+ if (!thread_number)
+ return 0;
+
+ size = sizeof(*je) + thread_number * sizeof(char) + 1;
je = malloc(size);
memset(je, 0, size);