X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=gfio.c;h=10c9b0947bbde51623f0f58b5a0ef5d43b30e4d6;hb=f6f80750f75810bdaf56dd9362982055de1d7232;hp=22c5314d3d1d5f93141dd7bedd8b7e902a848cba;hpb=6cc78de0059146ed2344438b16ffff28fed42915;p=fio.git diff --git a/gfio.c b/gfio.c index 22c5314d..10c9b094 100644 --- a/gfio.c +++ b/gfio.c @@ -730,8 +730,7 @@ static struct gui_entry *alloc_new_gui_entry(struct gui *ui) { struct gui_entry *ge; - ge = malloc(sizeof(*ge)); - memset(ge, 0, sizeof(*ge)); + ge = calloc(1, sizeof(*ge)); ge->state = GE_STATE_NEW; ge->ui = ui; return ge;