]> git.cameronkatri.com Git - cgit.git/blobdiff - cgit.c
Merge branch 'stable'
[cgit.git] / cgit.c
diff --git a/cgit.c b/cgit.c
index 66dd1402c23185154f67f55e41506e16a3152682..5816f3d8afef84ba7ed14580a0682342f206b50e 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -177,6 +177,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);