From 64438092cb3d1413b698464fa70d61c801d3ba0f Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 13 Feb 2019 17:07:25 +0200 Subject: [PATCH] client: Fix uninitialized error trusted should be initialized with false since the property may not be available. --- client/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/gatt.c b/client/gatt.c index 4358d6899..e68939f96 100644 --- a/client/gatt.c +++ b/client/gatt.c @@ -1928,7 +1928,7 @@ static bool is_device_trusted(const char *path) { GDBusProxy *proxy; DBusMessageIter iter; - bool trusted; + bool trusted = false; proxy = bt_shell_get_env(path); -- 2.47.3