about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--parsing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parsing.c b/parsing.c index 9dacb16..b8d7f10 100644 --- a/parsing.c +++ b/parsing.c
@@ -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