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