X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/a5e15537268410e268c7b26aa69d03b347c326c8..eeaffc33432d3cf91902cac3eab50c0598bdaa19:/shared.c?ds=sidebyside diff --git a/shared.c b/shared.c index 7e88bbd..8ed14c0 100644 --- a/shared.c +++ b/shared.c @@ -368,6 +368,7 @@ void cgit_diff_tree(const unsigned char *old_sha1, struct diff_options opt; struct pathspec_item item; + memset(&item, 0, sizeof(item)); diff_setup(&opt); opt.output_format = DIFF_FORMAT_CALLBACK; opt.detect_rename = 1;