mirror of
https://gitlab.gnome.org/GNOME/libgnome-volume-control.git
synced 2024-12-12 07:30:19 +00:00
gvc-mixer-ui-device: Do not deref NULL pointer
This commit is contained in:
parent
7a621180b4
commit
1949be7266
@ -557,6 +557,11 @@ gvc_mixer_ui_device_get_active_profile (GvcMixerUIDevice* device)
|
|||||||
}
|
}
|
||||||
|
|
||||||
profile = gvc_mixer_card_get_profile (device->priv->card);
|
profile = gvc_mixer_card_get_profile (device->priv->card);
|
||||||
|
if (profile == NULL) {
|
||||||
|
g_debug ("Device has no assigned profile");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
return gvc_mixer_ui_device_get_matching_profile (device, profile->profile);
|
return gvc_mixer_ui_device_get_matching_profile (device, profile->profile);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user