Fixed dead store warnings

This commit is contained in:
Armin Novak 2019-02-07 15:35:33 +01:00
parent 6c9130f7d6
commit 5612cbd8e6
2 changed files with 3 additions and 4 deletions

View File

@ -137,7 +137,7 @@ UINT freerdp_rdpsnd_client_subsystem_entry(PFREERDP_RDPSND_DEVICE_ENTRY_POINTS p
{
ADDIN_ARGV* args;
rdpsndFakePlugin* fake;
UINT ret;
UINT ret = CHANNEL_RC_OK;
fake = (rdpsndFakePlugin*) calloc(1, sizeof(rdpsndFakePlugin));
if (!fake)
@ -163,9 +163,8 @@ UINT freerdp_rdpsnd_client_subsystem_entry(PFREERDP_RDPSND_DEVICE_ENTRY_POINTS p
}
}
ret = CHANNEL_RC_NO_MEMORY;
pEntryPoints->pRegisterRdpsndDevice(pEntryPoints->rdpsnd, &fake->device);
return CHANNEL_RC_OK;
return ret;
error:
rdpsnd_fake_free(&fake->device);
return ret;

View File

@ -498,7 +498,7 @@ static UINT video_PresentationRequest(VideoClientContext* video, TSMM_PRESENTATI
PresentationContext_unref(presentation);
}
return CHANNEL_RC_OK;
return ret;
}