| -rw-r--r-- | ui-shared.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui-shared.c b/ui-shared.c index d2358f2..d27a5fd 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -945,13 +945,12 @@ static void cgit_print_path_crumbs(char *path) { char *old_path = ctx.qry.path; char *p = path, *q, *end = path + strlen(path); - int levels = 0; ctx.qry.path = NULL; cgit_self_link("root", NULL, NULL); ctx.qry.path = p = path; while (p < end) { - if (!(q = strchr(p, '/')) || levels > 15) + if (!(q = strchr(p, '/'))) q = end; *q = '\0'; html_txt("/"); @@ -959,7 +958,6 @@ static void cgit_print_path_crumbs(char *path) if (q < end) *q = '/'; p = q + 1; - ++levels; } ctx.qry.path = old_path; } |