aboutsummaryrefslogtreecommitdiff
path: root/shared.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared.c b/shared.c
index cb52380..0add2e5 100644
--- a/shared.c
+++ b/shared.c
@@ -8,6 +8,7 @@
#include "cgit.h"
#include <stdio.h>
+#include <linux/limits.h>
struct cgit_repolist cgit_repolist;
struct cgit_context ctx;
@@ -393,7 +394,7 @@ void cgit_prepare_repo_env(struct cgit_repo * repo)
p = env_vars;
q = p + env_var_count;
for (; p < q; p++)
- if (p->value && setenv(p->name, p->value, 1))
+ if (setenv(p->name, p->value, 1))
fprintf(stderr, warn, p->name, p->value);
}