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

OpenBMC Patches openbmc-patches at stwcx.xyz
Thu Jan 14 16:50:05 AEDT 2016


From: 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.6.4




More information about the openbmc mailing list