Merge branch 'ss/submodule--helper-use-xmalloc' into next
Code clean-up. * ss/submodule--helper-use-xmalloc: submodule--helper: replace malloc with xmallocnext
commit
f13711965e
|
|
@ -1160,7 +1160,7 @@ static void submodule_summary_callback(struct diff_queue_struct *q,
|
|||
|
||||
if (!S_ISGITLINK(p->one->mode) && !S_ISGITLINK(p->two->mode))
|
||||
continue;
|
||||
temp = (struct module_cb*)malloc(sizeof(struct module_cb));
|
||||
temp = xmalloc(sizeof(*temp));
|
||||
temp->mod_src = p->one->mode;
|
||||
temp->mod_dst = p->two->mode;
|
||||
temp->oid_src = p->one->oid;
|
||||
|
|
|
|||
Loading…
Reference in New Issue