Check if environ is actually set before we use it
authorLennart Poettering <lennart@poettering.net>
Tue, 16 Dec 2008 13:03:40 +0000 (14:03 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Dec 2008 13:03:40 +0000 (14:03 +0100)
commit701384935446a5705cb77a9da2f896b086a392be
tree3c1cf45b3002d091652a10e0c11bafb9eec25b29
parent2ee9276d97f15ea965fb8a88f2aa184355b9903a
Check if environ is actually set before we use it

Some applications seem to set **environ to NULL for various reasons.
Before we iterate through it we thus need to make sure it is actually
set to make sure we don't segfault.

Closes rhbz #473080
src/pulsecore/proplist-util.c