diff options
author | Lukas Fleischer <cgit@cryptocrack.de> | 2013-04-10 19:30:52 (JST) |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-04-10 20:46:30 (JST) |
commit | 8d8e84e72a24f474a6659ca04d0906723b2ac975 (patch) | |
tree | 60942d045a435c87284da5a21df7be407e7c7978 /ui-refs.c | |
parent | 410da3ac1cdb002116c08f143ce82534897ede27 (diff) | |
download | cgit-8d8e84e72a24f474a6659ca04d0906723b2ac975.zip cgit-8d8e84e72a24f474a6659ca04d0906723b2ac975.tar.gz |
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 'ui-refs.c')
0 files changed, 0 insertions, 0 deletions