diff options
-rw-r--r-- | cgitrc.5.txt | 2 | ||||
-rw-r--r-- | shared.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cgitrc.5.txt b/cgitrc.5.txt index 4721c1e..a22423b 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt | |||
@@ -500,7 +500,7 @@ Also, all filters are handed the following environment variables: | |||
500 | 500 | ||
501 | If a setting is not defined for a repository and the corresponding global | 501 | If a setting is not defined for a repository and the corresponding global |
502 | setting is also not defined (if applicable), then the corresponding | 502 | setting is also not defined (if applicable), then the corresponding |
503 | environment variable will be an empty string. | 503 | environment variable will be unset. |
504 | 504 | ||
505 | 505 | ||
506 | MACRO EXPANSION | 506 | MACRO EXPANSION |
@@ -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 | ||