]> code.delx.au - pulseaudio/commitdiff
instead of checking for directly use new function pa_in_valgrind()
authorLennart Poettering <lennart@poettering.net>
Fri, 3 Oct 2008 22:13:05 +0000 (00:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 3 Oct 2008 22:13:05 +0000 (00:13 +0200)
src/daemon/caps.c

index f7b6658bed37a0b923c4609cc5c0d90d57005089..25a09fdf598a4a78a4301fbafc4588f50faf0bfb 100644 (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