X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/e9a7042b5b44c6af2c7dc91eabed732d92278218..837d464af77d76a2661d92e05167657cbf430d80:/ui-log.c diff --git a/ui-log.c b/ui-log.c index 746f40b..8dd8b89 100644 --- a/ui-log.c +++ b/ui-log.c @@ -92,10 +92,8 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern rev.verbose_header = 1; rev.show_root_diff = 0; setup_revisions(argc, argv, &rev, NULL); - if (rev.grep_filter) { - rev.grep_filter->regflags |= REG_ICASE; - compile_grep_patterns(rev.grep_filter); - } + rev.grep_filter.regflags |= REG_ICASE; + compile_grep_patterns(&rev.grep_filter); prepare_revision_walk(&rev); if (pager)