about summary refs log tree commit diff stats
path: root/shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shared.c b/shared.c index 0add2e5..cb52380 100644 --- a/shared.c +++ b/shared.c
@@ -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
13struct cgit_repolist cgit_repolist; 12struct cgit_repolist cgit_repolist;
14struct cgit_context ctx; 13struct 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