]> git.cameronkatri.com Git - cgit.git/blobdiff - parsing.c
ui-snapshot: filter permitted snapshot requests
[cgit.git] / parsing.c
index b8d7f10de6a619ae598a2a28eecb36bf2e5ec7af..fd1ea9967cb68adc13f2efb555815a2e5da63812 100644 (file)
--- a/parsing.c
+++ b/parsing.c
@@ -20,11 +20,10 @@ 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;