about summary refs log tree commit diff
path: root/cache.h
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2011-09-14 11:52:43 +0200
committerLars Hjemli <hjemli@gmail.com>2012-01-03 14:59:36 +0000
commitd96d2c98ebc4c2d3765f5b35c4142e0e828a421b (patch)
tree72e2ed0fd0dd949d400cf4b35f9496571488a2eb /cache.h
parentshared.c: Remove unused "linux/limits.h" include (diff)
downloadcgit-pink-d96d2c98ebc4c2d3765f5b35c4142e0e828a421b.tar.gz
cgit-pink-d96d2c98ebc4c2d3765f5b35c4142e0e828a421b.zip
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 'cache.h')
0 files changed, 0 insertions, 0 deletions
='logheader'>2017-07-14Add just-about-functional dtch/atchJune McEnroe 2017-07-13Make pbd/pbcopy/pbpaste one binary with dispatchJune McEnroe 2017-07-11Remove manpager scriptJune McEnroe neovim now behaves correctly without the redirection hack. 2017-07-09Only pacman -Sy onceJune McEnroe 2017-07-09Add Tarmak 2 to console keymapJune McEnroe 2017-07-04Remove pathogenJune McEnroe Apparently this is built in now. Except it loads from a weird path structure. 2017-07-04Consolidate pbd, pbcopy, pbpasteJune McEnroe 2017-07-04Reorganize neovim configuration, againJune McEnroe 2017-07-04Remove <Esc><Esc> terminal mappingJune McEnroe <C-w><Esc> works just as well. Convenient. 2017-07-04Generalize C-w neovim terminal mappingJune McEnroe 2017-07-04Remove tmuxJune McEnroe tmux configuration was starting to bother me, and it got worse with Sierra. Turns out that neovim terminal emulation is much more natural to work with and requires less configuration, though I still disapprove of the feature being included in an editor! For detaching and attaching sessions, abduco is a simple tool that seems to work decently, but given that I will likely only be running neovim in the sessions, I might come up with something even simpler. 2017-07-04Show terminal title in statuslineJune McEnroe 2017-07-04Add nvim terminal mappingsJune McEnroe 2017-06-29Add color to xxJune McEnroe 2017-06-28Set tmux copy-mode-vi bindings for TarmakJune McEnroe 2017-06-27Link Scala syntax fileJune McEnroe Oops. 2017-06-27Clean up top of trivial colorscheme fileJune McEnroe 2017-06-27Fix Scala syntax highlight linksJune McEnroe