char *c, *cmd, *p;
struct cgit_repo *repo;
- ctx.repo = 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;
}
if (cmd[1])
ctx.qry.page = xstrdup(cmd + 1);
- return;
}
}