diff options
| -rw-r--r-- | ui-shared.c | 3 |
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, | |||
| 889 | 889 | ||
| 890 | static const char *hc(const char *page) | 890 | static const char *hc(const char *page) |
| 891 | { | 891 | { |
| 892 | if (!ctx.qry.page) | ||
| 893 | return NULL; | ||
| 894 | |||
| 892 | return strcmp(ctx.qry.page, page) ? NULL : "active"; | 895 | return strcmp(ctx.qry.page, page) ? NULL : "active"; |
| 893 | } | 896 | } |
| 894 | 897 | ||
