]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-refs.c
ui-snapshot: set unused cgit_filter fields to zero
[ps-cgit] / ui-refs.c
index 7af6fed0ad0c85b6db64472330fcfcf06bc0a065..20c91e3c2401d7da4d6fa3c634623ef60f71e5fe 100644 (file)
--- a/ui-refs.c
+++ b/ui-refs.c
@@ -240,9 +240,9 @@ void cgit_print_refs()
 
        html("<table class='list nowrap'>");
 
-       if (ctx.qry.path && !strncmp(ctx.qry.path, "heads", 5))
+       if (ctx.qry.path && !prefixcmp(ctx.qry.path, "heads"))
                cgit_print_branches(0);
-       else if (ctx.qry.path && !strncmp(ctx.qry.path, "tags", 4))
+       else if (ctx.qry.path && !prefixcmp(ctx.qry.path, "tags"))
                cgit_print_tags(0);
        else {
                cgit_print_branches(0);