From 33958dce67a5ea989fd9979c034612fd9b7b95d8 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Fri, 27 May 2016 17:38:55 -0300 Subject: [PATCH] sol-gatt: Fix possible use of unitialized variable warning Signed-off-by: Vinicius Costa Gomes --- src/lib/comms/sol-gatt-impl-bluez.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/comms/sol-gatt-impl-bluez.c b/src/lib/comms/sol-gatt-impl-bluez.c index 45b7e82ed..e28b19a57 100644 --- a/src/lib/comms/sol-gatt-impl-bluez.c +++ b/src/lib/comms/sol-gatt-impl-bluez.c @@ -115,7 +115,7 @@ sol_gatt_pending_reply(struct sol_gatt_pending *pending, int error, struct context *ctx = bluetooth_get_context(); const struct sol_gatt_attr *attr; const char *interface; - int r; + int r = 0; SOL_NULL_CHECK(pending, -EINVAL);