diff options
Diffstat (limited to 'parsing.c')
-rw-r--r-- | parsing.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -20,11 +20,10 @@ void cgit_parse_url(const char *url) | |||
20 | char *c, *cmd, *p; | 20 | char *c, *cmd, *p; |
21 | struct cgit_repo *repo; | 21 | struct cgit_repo *repo; |
22 | 22 | ||
23 | ctx.repo = NULL; | ||
24 | ctx.qry.page = NULL; | ||
25 | if (!url || url[0] == '\0') | 23 | if (!url || url[0] == '\0') |
26 | return; | 24 | return; |
27 | 25 | ||
26 | ctx.qry.page = NULL; | ||
28 | ctx.repo = cgit_get_repoinfo(url); | 27 | ctx.repo = cgit_get_repoinfo(url); |
29 | if (ctx.repo) { | 28 | if (ctx.repo) { |
30 | ctx.qry.repo = ctx.repo->url; | 29 | ctx.qry.repo = ctx.repo->url; |