client: Fix uninitialized error
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 13 Feb 2019 15:07:25 +0000 (17:07 +0200)
committerhimanshu <h.himanshu@samsung.com>
Tue, 11 Feb 2020 08:57:47 +0000 (14:27 +0530)
trusted should be initialized with false since the property may not be
available.

Change-Id: Id1529b0821d3b7a466bab8c52c150dac0d2a3714
Signed-off-by: himanshu <h.himanshu@samsung.com>
client/gatt.c

index aaca5e0..cf13d1c 100755 (executable)
@@ -1915,7 +1915,7 @@ static bool is_device_trusted(const char *path)
 {
        GDBusProxy *proxy;
        DBusMessageIter iter;
-       bool trusted;
+       bool trusted = false;
 
        proxy = bt_shell_get_env(path);