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 d96d2c98eb
for a related patch.
Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
此提交包含在:
新增問題並參考
封鎖使用者