-rw-r--r-- | parsing.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -169,3 +169,4 @@ void cgit_parse_url(const char *url) p[0] = '\0'; - cgit_query_path = xstrdup(p + 1); + if (p[1]) + cgit_query_path = xstrdup(p + 1); } |
![]() |
index : patchwork/cgit.git | |
cgit - fast webinterface for git |
summaryrefslogtreecommitdiffabout |
-rw-r--r-- | parsing.c | 3 |
@@ -169,3 +169,4 @@ void cgit_parse_url(const char *url) p[0] = '\0'; - cgit_query_path = xstrdup(p + 1); + if (p[1]) + cgit_query_path = xstrdup(p + 1); } |