diff options
author | Kai Lüke <kailueke@riseup.net> | 2021-01-04 22:03:16 +0100 |
---|---|---|
committer | Kai Lüke <kailueke@riseup.net> | 2021-01-05 23:35:00 +0100 |
commit | 1949be72667dec4220de5cfbd4e3066d32a9a63a (patch) | |
tree | 98a5bb483e8e0812e0d3ad8a78d0eaad09c71452 | |
parent | 7a621180b46421e356b33972e3446775a504139c (diff) | |
download | libgnome-volume-control-do-not-deref-null-pointer.tar.gz |
gvc-mixer-ui-device: Do not deref NULL pointerdo-not-deref-null-pointer
-rw-r--r-- | gvc-mixer-ui-device.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gvc-mixer-ui-device.c b/gvc-mixer-ui-device.c index f7dd33e..a2bdc45 100644 --- a/gvc-mixer-ui-device.c +++ b/gvc-mixer-ui-device.c @@ -557,6 +557,11 @@ gvc_mixer_ui_device_get_active_profile (GvcMixerUIDevice* device) } 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); } |