[pulseaudio-commits] r2238 - /branches/glitch-free/src/pulse/context.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Apr 11 09:27:36 PDT 2008


Author: lennart
Date: Fri Apr 11 18:27:31 2008
New Revision: 2238

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2238&root=pulseaudio&view=rev
Log:
fix bad memory access when initializing client proplist

Modified:
    branches/glitch-free/src/pulse/context.c

Modified: branches/glitch-free/src/pulse/context.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulse/context.c?rev=2238&root=pulseaudio&r1=2237&r2=2238&view=diff
==============================================================================
--- branches/glitch-free/src/pulse/context.c (original)
+++ branches/glitch-free/src/pulse/context.c Fri Apr 11 18:27:31 2008
@@ -1205,8 +1205,10 @@
         }
     }
 
-    if (!(a = pa_proplist_contains(p, PA_PROP_APPLICATION_PROCESS_BINARY)) ||
-        !(b = pa_proplist_contains(p, PA_PROP_APPLICATION_NAME))) {
+    a = pa_proplist_contains(p, PA_PROP_APPLICATION_PROCESS_BINARY);
+    b = pa_proplist_contains(p, PA_PROP_APPLICATION_NAME);
+
+    if (!a || !b) {
         char t[PATH_MAX];
         if (pa_get_binary_name(t, sizeof(t))) {
             char *c = pa_utf8_filter(t);




More information about the pulseaudio-commits mailing list