diff options
| -rw-r--r-- | parsing.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| @@ -21,6 +21,7 @@ void cgit_parse_url(const char *url) | |||
| 21 | struct cgit_repo *repo; | 21 | struct cgit_repo *repo; | 
| 22 | 22 | ||
| 23 | ctx.repo = NULL; | 23 | ctx.repo = NULL; | 
| 24 | ctx.qry.page = NULL; | ||
| 24 | if (!url || url[0] == '\0') | 25 | if (!url || url[0] == '\0') | 
| 25 | return; | 26 | return; | 
| 26 | 27 | ||
| @@ -53,7 +54,6 @@ void cgit_parse_url(const char *url) | |||
| 53 | } | 54 | } | 
| 54 | if (cmd[1]) | 55 | if (cmd[1]) | 
| 55 | ctx.qry.page = xstrdup(cmd + 1); | 56 | ctx.qry.page = xstrdup(cmd + 1); | 
| 56 | return; | ||
| 57 | } | 57 | } | 
| 58 | } | 58 | } | 
| 59 | 59 | ||
