]> code.delx.au - pulseaudio/commitdiff
intended-roles: properly initialize split state
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Jun 2009 02:23:26 +0000 (04:23 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Jun 2009 02:23:26 +0000 (04:23 +0200)
src/modules/module-intended-roles.c

index ce74a01cc04e1b754c4d828cb246f05eacd0b809..38b8f4842f47576301e8f9e6fb03ad8fec53a777 100644 (file)
@@ -84,7 +84,7 @@ struct userdata {
 static pa_bool_t role_match(pa_proplist *proplist, const char *role) {
     const char *ir;
     char *r;
-    const char *state;
+    const char *state = NULL;
 
     if (!(ir = pa_proplist_gets(proplist, PA_PROP_DEVICE_INTENDED_ROLES)))
         return FALSE;