X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/8b2252b0b61617e9de9d9e9ba743881ad62523af..cb92d05b6b729cd0e219b43d7a79aff832a9c1ac:/cgit.c diff --git a/cgit.c b/cgit.c index 36777b5..5816f3d 100644 --- 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); @@ -233,7 +236,7 @@ static void prepare_context(struct cgit_context *ctx) ctx->cfg.cache_root_ttl = 5; ctx->cfg.cache_static_ttl = -1; ctx->cfg.css = "/cgit.css"; - ctx->cfg.logo = "/git-logo.png"; + ctx->cfg.logo = "/cgit.png"; ctx->cfg.local_time = 0; ctx->cfg.max_repo_count = 50; ctx->cfg.max_commit_count = 50;