]> code.delx.au - pulseaudio/commitdiff
tunnel: Fix inverted if condition
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Thu, 13 Mar 2014 11:04:55 +0000 (13:04 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Thu, 13 Mar 2014 11:04:55 +0000 (13:04 +0200)
src/modules/module-tunnel.c

index 1ddfd259596dc698ecce8f983553520dc955844f..6b3512e26413a64113900cf22b7c829e242091fe 100644 (file)
@@ -1997,7 +1997,7 @@ int pa__init(pa_module*m) {
 #endif
 
         /* Figure out the cookie the same way a normal client would */
-        if (cookie_path)
+        if (!cookie_path)
             cookie_path = getenv(ENV_COOKIE_FILE);
 
 #ifdef HAVE_X11