I prefer:
struct hecaioc_hmr *newhmr;

newhmr = g_malloc0(sizeof *newhmr);
assert(!newhmr);