]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-repolist.c
ui-blog: fix oid handling
[ps-cgit] / ui-repolist.c
index 1d9a7f74d28708c6779d88012f8b760bb22b67b4..7158bf7cf643b3b90c47cfab040796ff013ad2ea 100644 (file)
@@ -343,13 +343,15 @@ void cgit_print_repolist(void)
                                html_txt(ctx.repo->owner);
                                cgit_close_filter(ctx.repo->owner_filter);
                        } else {
                                html_txt(ctx.repo->owner);
                                cgit_close_filter(ctx.repo->owner_filter);
                        } else {
+                               char *currenturl = cgit_currenturl();
                                html("<a href='");
                                html("<a href='");
-                               html_attr(cgit_currenturl());
+                               html_attr(currenturl);
                                html("?q=");
                                html_url_arg(ctx.repo->owner);
                                html("'>");
                                html_txt(ctx.repo->owner);
                                html("</a>");
                                html("?q=");
                                html_url_arg(ctx.repo->owner);
                                html("'>");
                                html_txt(ctx.repo->owner);
                                html("</a>");
+                               free(currenturl);
                        }
                        html("</td><td>");
                }
                        }
                        html("</td><td>");
                }