intended-roles: properly initialize split state

This commit is contained in:
Lennart Poettering 2009-06-23 04:23:26 +02:00
parent d965000982
commit b6d0b0e808

View 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;