]> gitweb.ps.run Git - ps-cgit/blobdiff - parsing.c
parsing: clear query path before starting
[ps-cgit] / parsing.c
index 9dacb16619a1e8202e517342b3ab06db2f4bf53b..b8d7f10de6a619ae598a2a28eecb36bf2e5ec7af 100644 (file)
--- a/parsing.c
+++ b/parsing.c
@@ -21,6 +21,7 @@ void cgit_parse_url(const char *url)
        struct cgit_repo *repo;
 
        ctx.repo = NULL;
+       ctx.qry.page = NULL;
        if (!url || url[0] == '\0')
                return;
 
@@ -53,7 +54,6 @@ void cgit_parse_url(const char *url)
                }
                if (cmd[1])
                        ctx.qry.page = xstrdup(cmd + 1);
-               return;
        }
 }