]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-shared.c
ui-shared: don't print path crumbs without a repo
[cgit.git] / ui-shared.c
index 2e4fcd928d410378c7e88edcd9643496c84bade5..e5c9a02f9f08773eda336ba603ecd74edcf38953 100644 (file)
@@ -1039,7 +1039,7 @@ void cgit_print_pageheader(void)
                free(currenturl);
        }
        html("</td></tr></table>\n");
-       if (ctx.env.authenticated && ctx.qry.vpath) {
+       if (ctx.env.authenticated && ctx.repo && ctx.qry.vpath) {
                html("<div class='path'>");
                html("path: ");
                cgit_print_path_crumbs(ctx.qry.vpath);