From 969e9554a31385b2d2c09695dab984d585dc2693 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Mon, 21 Sep 2026 06:42:39 -1000 Subject: Harden the request path, scan and error recovery --- source/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/cmd.c') diff --git a/source/cmd.c b/source/cmd.c index 2c6406f..a19aa50 100644 --- a/source/cmd.c +++ b/source/cmd.c @@ -212,7 +212,7 @@ const struct cgit_cmd *cgit_get_cmd(void) { size_t i; - if (ctx.qry.page == NULL) { + if (!ctx.qry.page) { if (ctx.repo) ctx.qry.page = "summary"; else -- cgit v2.8.0