about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ui-shared.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 48358cc..5b48734 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -889,6 +889,9 @@ void cgit_add_hidden_formfields(int incl_head, int incl_search,
 
 static const char *hc(const char *page)
 {
+	if (!ctx.qry.page)
+		return NULL;
+
 	return strcmp(ctx.qry.page, page) ? NULL : "active";
 }
 
usal.agency/cgitrc?id=be52ffcb4c0fee1aef422fe983a4b9a2be673186&follow=1'>Update taglineJune McEnroe