X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/8729d251a900b2e6e22cc4c93a2193fd8a2b9acf..1de3048d08fc6491630c45437f88f5ab03c0508f:/shared.c?ds=inline diff --git a/shared.c b/shared.c index 699c362..0c8ce3e 100644 --- a/shared.c +++ b/shared.c @@ -8,7 +8,6 @@ #include "cgit.h" #include -#include struct cgit_repolist cgit_repolist; struct cgit_context ctx; @@ -393,7 +392,7 @@ void cgit_prepare_repo_env(struct cgit_repo * repo) p = env_vars; q = p + env_var_count; for (; p < q; p++) - if (setenv(p->name, p->value, 1)) + if (p->value && setenv(p->name, p->value, 1)) fprintf(stderr, warn, p->name, p->value); }