bluetoothmgmt/btmgr/BTManServer/BTRegistryDB.cpp
changeset 51 20ac952a623c
parent 17 907b2fb7aa8e
--- a/bluetoothmgmt/btmgr/BTManServer/BTRegistryDB.cpp	Thu Sep 23 17:06:47 2010 +0300
+++ b/bluetoothmgmt/btmgr/BTManServer/BTRegistryDB.cpp	Wed Oct 13 16:20:29 2010 +0300
@@ -947,9 +947,13 @@
 		devSec.SetSecurityValue(aRowSet.ColUint8(column));
 		column = ColumnNoL(KDeviceColName_GlobalSecPasskeyLen, aRowSet);
 		devSec.SetPasskeyMinLength(aRowSet.ColUint32(column));
-				
+	    // TBTDeviceSecurity::iPadding2 is not initialised. iPadding2 is for future use.
+	    // It is not supposed to be initialised.
+        // coverity[uninit_use_in_call]
 		aDevice.SetGlobalSecurity(devSec);
 		}
+    //##== coverity[var_decl]
+
 
 	column = ColumnNoL(KDeviceColName_LinkKey, aRowSet);
 	TDbColNo typeColumn = ColumnNoL(KDeviceColName_LinkKeyType, aRowSet);
@@ -1203,7 +1207,7 @@
 	settings->SetBTAddr(static_cast<TBTDevAddr>(addrBuf));
 
 	// get the uuid
-	TUUID uuid;
+	TUUID uuid = TUUID();
 	uuid.SetL(view->ColDes8(ColumnNoL(KBTCOMMColName_ServiceUUID, *view)));
 	settings->SetUUID(uuid);