]> gitweb.ps.run Git - ps-cgit/blobdiff - shared.c
Merge branch 'lh/module-links'
[ps-cgit] / shared.c
index 0add2e5df2e369e7ae1113bcdcd70985bcaf512b..cb52380916447eecb62b66957a1655dd6a6a0fd6 100644 (file)
--- a/shared.c
+++ b/shared.c
@@ -8,7 +8,6 @@
 
 #include "cgit.h"
 #include <stdio.h>
-#include <linux/limits.h>
 
 struct cgit_repolist cgit_repolist;
 struct cgit_context ctx;
@@ -394,7 +393,7 @@ void cgit_prepare_repo_env(struct cgit_repo * repo)
        p = env_vars;
        q = p + env_var_count;
        for (; p < q; p++)
-               if (setenv(p->name, p->value, 1))
+               if (p->value && setenv(p->name, p->value, 1))
                        fprintf(stderr, warn, p->name, p->value);
 }