[gnome-bluetooth/wip/hadess/fix-keyboard-cancel: 3/10] lib: Add guard to bluetooth_client_setup_device()




commit f11bb26296c04f94e02b281f402d4365cb469f0c
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Feb 19 12:56:41 2021 +0100

    lib: Add guard to bluetooth_client_setup_device()

 lib/bluetooth-client.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/lib/bluetooth-client.c b/lib/bluetooth-client.c
index cb5425c9..a4365535 100644
--- a/lib/bluetooth-client.c
+++ b/lib/bluetooth-client.c
@@ -1383,6 +1383,7 @@ bluetooth_client_setup_device (BluetoothClient          *client,
        gboolean paired;
 
        g_return_if_fail (BLUETOOTH_IS_CLIENT (client));
+       g_return_if_fail (path != NULL);
 
        task = g_task_new (G_OBJECT (client),
                           cancellable,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]