mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 18:08:11 +00:00
Ensure patch is initialized to zero, otherwise, the allocated flag may be set
This commit is contained in:
parent
e640a77c9f
commit
5387cfee4c
@ -274,6 +274,7 @@ int git_diff_foreach(
|
||||
return error;
|
||||
|
||||
memset(&xo, 0, sizeof(xo));
|
||||
memset(&patch, 0, sizeof(patch));
|
||||
diff_output_init(
|
||||
&xo.output, &diff->opts, file_cb, hunk_cb, data_cb, payload);
|
||||
git_xdiff_init(&xo, &diff->opts);
|
||||
|
Loading…
Reference in New Issue
Block a user