};
struct hdfsio_options {
- void *pad; /* needed because offset can't be 0 for a option defined used offsetof */
+ void *pad; /* needed because offset can't be 0 for an option defined used offsetof */
char *host;
char *directory;
unsigned int port;
uint64_t file_size, total_file_size;
if (!td->io_ops_data) {
- hd = malloc(sizeof(*hd));
- memset(hd, 0, sizeof(*hd));
+ hd = calloc(1, sizeof(*hd));
hd->curr_file_id = -1;