[libgnome-volume-control/do-not-deref-null-pointer] gvc-mixer-ui-device: Do not deref NULL pointer
- From: Kai Lüke <kailueke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgnome-volume-control/do-not-deref-null-pointer] gvc-mixer-ui-device: Do not deref NULL pointer
- Date: Mon, 4 Jan 2021 21:04:20 +0000 (UTC)
commit 7f233457ae127b8ed8934bbe7e4690318ae0d43d
Author: Kai Lüke <kailueke riseup net>
Date: Mon Jan 4 22:03:16 2021 +0100
gvc-mixer-ui-device: Do not deref NULL pointer
gvc-mixer-ui-device.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/gvc-mixer-ui-device.c b/gvc-mixer-ui-device.c
index f7dd33e..9bb6ff6 100644
--- a/gvc-mixer-ui-device.c
+++ b/gvc-mixer-ui-device.c
@@ -557,6 +557,7 @@ gvc_mixer_ui_device_get_active_profile (GvcMixerUIDevice* device)
}
profile = gvc_mixer_card_get_profile (device->priv->card);
+ g_return_val_if_fail (profile != NULL, NULL);
return gvc_mixer_ui_device_get_matching_profile (device, profile->profile);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]