X-Git-Url: https://git.cameronkatri.com/cgit.git/blobdiff_plain/a5e15537268410e268c7b26aa69d03b347c326c8..a87c9d8a9779eab0499efd3c44e090a28c7d1cdf:/shared.c diff --git a/shared.c b/shared.c index 7e88bbd..6e91857 100644 --- a/shared.c +++ b/shared.c @@ -72,6 +72,7 @@ struct cgit_repo *cgit_add_repo(const char *url) ret->commit_filter = ctx.cfg.commit_filter; ret->source_filter = ctx.cfg.source_filter; ret->email_filter = ctx.cfg.email_filter; + ret->owner_filter = ctx.cfg.owner_filter; ret->clone_url = ctx.cfg.clone_url; ret->submodules.strdup_strings = 1; return ret; @@ -368,6 +369,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;