Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 179f314

Browse files
committed
sol-gatt: Fix possible use of unitialized variable warning
Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
1 parent 60104e3 commit 179f314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/comms/sol-gatt-impl-bluez.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ sol_gatt_pending_reply(struct sol_gatt_pending *pending, int error,
115115
struct context *ctx = bluetooth_get_context();
116116
const struct sol_gatt_attr *attr;
117117
const char *interface;
118-
int r;
118+
int r = 0;
119119

120120
SOL_NULL_CHECK(pending, -EINVAL);
121121

0 commit comments

Comments
 (0)