diff options
Diffstat (limited to 'shared.c')
-rw-r--r-- | shared.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -8,7 +8,6 @@ | |||
8 | 8 | ||
9 | #include "cgit.h" | 9 | #include "cgit.h" |
10 | #include <stdio.h> | 10 | #include <stdio.h> |
11 | #include <linux/limits.h> | ||
12 | 11 | ||
13 | struct cgit_repolist cgit_repolist; | 12 | struct cgit_repolist cgit_repolist; |
14 | struct cgit_context ctx; | 13 | struct cgit_context ctx; |
@@ -394,7 +393,7 @@ void cgit_prepare_repo_env(struct cgit_repo * repo) | |||
394 | p = env_vars; | 393 | p = env_vars; |
395 | q = p + env_var_count; | 394 | q = p + env_var_count; |
396 | for (; p < q; p++) | 395 | for (; p < q; p++) |
397 | if (setenv(p->name, p->value, 1)) | 396 | if (p->value && setenv(p->name, p->value, 1)) |
398 | fprintf(stderr, warn, p->name, p->value); | 397 | fprintf(stderr, warn, p->name, p->value); |
399 | } | 398 | } |
400 | 399 | ||