[PATCH btbridge v4 1/6] Initialise variable to avoid using it uninitialised

OpenBMC Patches openbmc-patches at stwcx.xyz
Wed May 4 11:10:03 AEST 2016


From: Cyril Bur <cyril.bur at au1.ibm.com>

Signed-off-by: Cyril Bur <cyril.bur at au1.ibm.com>
---
 btbridged.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/btbridged.c b/btbridged.c
index fe692bb..3e261a9 100644
--- a/btbridged.c
+++ b/btbridged.c
@@ -489,7 +489,7 @@ static int dispatch_sd_bus(struct btbridged_context *context)
 static int dispatch_bt(struct btbridged_context *context)
 {
 	int err = 0;
-	int r;
+	int r = 0;
 
 	assert(context);
 
-- 
2.8.1




More information about the openbmc mailing list