aboutsummaryrefslogtreecommitdiffstats
path: root/cgitrc.5.txt
diff options
context:
space:
mode:
authorGravatar Lukas Fleischer <cgit@cryptocrack.de>2011-09-14 18:52:43 (JST)
committerGravatar Lars Hjemli <hjemli@gmail.com>2012-01-03 23:59:36 (JST)
commitd96d2c98ebc4c2d3765f5b35c4142e0e828a421b (patch)
tree72e2ed0fd0dd949d400cf4b35f9496571488a2eb /cgitrc.5.txt
parent8185169e5e2a8b9438c7a6f3f9c5eb6db5a37fea (diff)
downloadcgit-d96d2c98ebc4c2d3765f5b35c4142e0e828a421b.zip
cgit-d96d2c98ebc4c2d3765f5b35c4142e0e828a421b.tar.gz
shared.c: Only setenv() if value is non-null
Some setenv() implementations (e.g. the one in OpenBSD's stdlib) segfault if we pass a NULL value. Only set environment variables if the corresponding settings are defined to avoid this. Note that this is a minor behaviour change as environment variables were supposed to be set to an empty string if a setting was undefined. Given that this feature isn't part of any official release yet, there's no need to worry about backwards compatibility, really. Change the documentation accordingly. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'cgitrc.5.txt')
-rw-r--r--cgitrc.5.txt2
1 files changed, 1 insertions, 1 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
501If a setting is not defined for a repository and the corresponding global 501If a setting is not defined for a repository and the corresponding global
502setting is also not defined (if applicable), then the corresponding 502setting is also not defined (if applicable), then the corresponding
503environment variable will be an empty string. 503environment variable will be unset.
504 504
505 505
506MACRO EXPANSION 506MACRO EXPANSION