X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/5e447b1ed1aa751e8ec93dccf4df6fa4a7ffddb6..6421dc38db02eff8d3ada93e87a2f7e5292af131:/cgit.c diff --git a/cgit.c b/cgit.c index 64d95f9..5301840 100644 --- a/cgit.c +++ b/cgit.c @@ -132,6 +132,9 @@ void config_cb(const char *name, const char *value) static void querystring_cb(const char *name, const char *value) { + if (!value) + value = ""; + if (!strcmp(name,"r")) { ctx.qry.repo = xstrdup(value); ctx.repo = cgit_get_repoinfo(value);