From fb6dcf39f90a390cf81c59c119e0d9ec9d9a34cc Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 11 Oct 2026 17:35:44 -1000 Subject: Make two branch conditions say what they rely on cgit_parse_url tested ctx.repo where the loop sets repo_end alongside it, and the log's closing link kept a commit it never read. The Clang Static Analyzer tripped on both. --- source/parsing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/parsing.c') diff --git a/source/parsing.c b/source/parsing.c index da09b2b..dab81fa 100644 --- a/source/parsing.c +++ b/source/parsing.c @@ -149,7 +149,7 @@ void cgit_parse_url(const char *url) slash = strchr(slash + 1, '/'); } - if (ctx.repo) { + if (repo_end) { ctx.qry.repo = ctx.repo->url; page_end = strchr(repo_end + 1, '/'); if (page_end) { -- cgit 2.12.1