diff options
Diffstat (limited to 'shared.c')
-rw-r--r-- | shared.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -392,7 +392,7 @@ void cgit_prepare_repo_env(struct cgit_repo * repo) | |||
392 | p = env_vars; | 392 | p = env_vars; |
393 | q = p + env_var_count; | 393 | q = p + env_var_count; |
394 | for (; p < q; p++) | 394 | for (; p < q; p++) |
395 | if (setenv(p->name, p->value, 1)) | 395 | if (p->value && setenv(p->name, p->value, 1)) |
396 | fprintf(stderr, warn, p->name, p->value); | 396 | fprintf(stderr, warn, p->name, p->value); |
397 | } | 397 | } |
398 | 398 | ||