Corrected resulting errors from -Wall & -Werror.
Change-Id: I2b45eaec2a90ddb44ebff51be6cc19e7fca9a4d7
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/btbridged.c b/btbridged.c
index fe692bb..d504cf2 100644
--- a/btbridged.c
+++ b/btbridged.c
@@ -339,7 +339,7 @@
struct bt_queue *head;
uint8_t data[BT_MAX_MESSAGE] = { 0 };
sd_bus_message *msg = NULL;
- int r, len;
+ int r = 0, len;
assert(context);
@@ -489,7 +489,7 @@
static int dispatch_bt(struct btbridged_context *context)
{
int err = 0;
- int r;
+ int r = 0;
assert(context);