Changed all malloc() to calloc()

This commit is contained in:
2010-07-12 19:37:31 +00:00
parent 15266fb310
commit 2a48b34bcd
13 changed files with 29 additions and 34 deletions

View File

@ -143,7 +143,7 @@ static void add_worker(int w_type, struct burn_drive *d,
pthread_attr_t attr;
#endif
a = malloc(sizeof(struct w_list));
a = calloc(1, sizeof(struct w_list));
a->w_type = w_type;
a->drive = d;
a->u = *(union w_list_data *)data;