X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/3fbaf097153b239b092d11a178ace96671f9f3ec..2b9fab8d30420d935745c4d84ea22412ab2485e5:/shared.c diff --git a/shared.c b/shared.c index 0add2e5..cb52380 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; @@ -394,7 +393,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); }