[Coverity] Fix some uninitialised values

This commit is contained in:
baldurk
2016-09-14 17:53:54 +02:00
parent c9eeef3151
commit 25465cb247
4 changed files with 9 additions and 5 deletions
+3 -3
View File
@@ -1943,7 +1943,7 @@ vector<DebugMessage> ReplayProxy::GetDebugMessages()
FetchTexture ReplayProxy::GetTexture(ResourceId id)
{
FetchTexture ret;
FetchTexture ret = {};
m_ToReplaySerialiser->Serialise("", id);
@@ -1983,7 +1983,7 @@ vector<ResourceId> ReplayProxy::GetBuffers()
FetchBuffer ReplayProxy::GetBuffer(ResourceId id)
{
FetchBuffer ret;
FetchBuffer ret = {};
m_ToReplaySerialiser->Serialise("", id);
@@ -2373,7 +2373,7 @@ void ReplayProxy::InitPostVSBuffers(const vector<uint32_t> &events)
MeshFormat ReplayProxy::GetPostVSBuffers(uint32_t eventID, uint32_t instID, MeshDataStage stage)
{
MeshFormat ret;
MeshFormat ret = {};
m_ToReplaySerialiser->Serialise("", eventID);
m_ToReplaySerialiser->Serialise("", instID);
+2
View File
@@ -112,6 +112,8 @@ public:
m_ToReplaySerialiser = NULL;
m_FromReplaySerialiser = new Serialiser(NULL, Serialiser::WRITING, false);
m_RemoteHasResolver = false;
RDCEraseEl(m_APIProps);
}
virtual ~ReplayProxy();
+2 -2
View File
@@ -376,6 +376,8 @@ public:
PacketType type;
vector<byte> payload;
m_PID = 0;
{
Serialiser ser("", Serialiser::WRITING, false);
@@ -392,8 +394,6 @@ public:
Serialiser *ser = NULL;
GetPacket(type, ser);
m_PID = 0;
// failed handshaking
if(m_Socket == NULL || ser == NULL)
return;
+2
View File
@@ -93,6 +93,8 @@ D3D11DebugManager::D3D11DebugManager(WrappedID3D11Device *wrapper)
m_supersamplingX = 1.0f;
m_supersamplingY = 1.0f;
m_width = m_height = 1;
m_WrappedDevice = wrapper;
ID3D11DeviceContext *ctx = NULL;
m_WrappedDevice->GetImmediateContext(&ctx);