instead of checking for directly use new function pa_in_valgrind()

This commit is contained in:
Lennart Poettering 2008-10-04 00:13:05 +02:00
parent 8222f1200f
commit 9b00664295

View file

@ -112,9 +112,9 @@ void pa_drop_caps(void) {
#ifndef __OPTIMIZE__
/* Valgrind doesn't not know set_caps, so we bypass it here -- but
* only in development builts.*/
* only in development builds.*/
if (getenv("VALGRIND") && !pa_have_caps())
if (pa_in_valgrind() && !pa_have_caps())
return;
#endif