about summary refs log tree commit diff
path: root/cache.h
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2013-04-10 12:30:52 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2013-04-10 13:46:30 +0200
commit8d8e84e72a24f474a6659ca04d0906723b2ac975 (patch)
tree60942d045a435c87284da5a21df7be407e7c7978 /cache.h
parentt0107: Use `tar -z` for gzip'ed archives (diff)
downloadcgit-pink-8d8e84e72a24f474a6659ca04d0906723b2ac975.tar.gz
cgit-pink-8d8e84e72a24f474a6659ca04d0906723b2ac975.zip
cgit.c: Do not restore unset environment variables
getenv() returns a NULL pointer if the specified variable name cannot be
found in the environment. However, some setenv() implementations crash
if a NULL pointer is passed as second argument. Only restore variables
that are not NULL.

See commit d96d2c98ebc4c2d3765f5b35c4142e0e828a421b for a related patch.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'cache.h')
0 files changed, 0 insertions, 0 deletions
1a70d78cfce7318b503891fd0290ad0cccaf&follow=1'>Update line count for words longer than linesJune McEnroe 2020-02-10Simplify mark, heat, unread trackingJune McEnroe 2020-02-10Update prompt when own nick changesJune McEnroe 2020-02-10Match URLs surrounded by parenthesesJune McEnroe 2020-02-10Fix M-a so it properly cycles back to where it startedJune McEnroe 2020-02-09Add M-lJune McEnroe 2020-02-09Add /whoisJune McEnroe 2020-02-09Add /msgJune McEnroe