-rw-r--r-- | parsing.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -151,3 +151,3 @@ void cgit_parse_url(const char *url) if (cgit_repo) { - cgit_query_repo = cgit_repo->url; + ctx.qry.repo = cgit_repo->url; return; @@ -165,3 +165,3 @@ void cgit_parse_url(const char *url) - cgit_query_repo = cgit_repo->url; + ctx.qry.repo = cgit_repo->url; p = strchr(cmd + 1, '/'); @@ -170,6 +170,6 @@ void cgit_parse_url(const char *url) if (p[1]) - cgit_query_path = trim_end(p + 1, '/'); + ctx.qry.path = trim_end(p + 1, '/'); } cgit_cmd = cgit_get_cmd_index(cmd + 1); - cgit_query_page = xstrdup(cmd + 1); + ctx.qry.page = xstrdup(cmd + 1); return; |