Merge pull request #3969 from chipitsine/cppcheck
resolve issue found by cppcheck
This commit is contained in:
commit
3470c4d5f8
@ -79,6 +79,9 @@ BOOL tsmf_playback_ack(IWTSVirtualChannelCallback *pChannelCallback,
|
||||
int status = -1;
|
||||
TSMF_CHANNEL_CALLBACK *callback = (TSMF_CHANNEL_CALLBACK *) pChannelCallback;
|
||||
|
||||
if (!callback)
|
||||
return FALSE;
|
||||
|
||||
s = Stream_New(NULL, 32);
|
||||
if (!s)
|
||||
return FALSE;
|
||||
@ -92,7 +95,7 @@ BOOL tsmf_playback_ack(IWTSVirtualChannelCallback *pChannelCallback,
|
||||
|
||||
DEBUG_TSMF("ACK response size %"PRIuz"", Stream_GetPosition(s));
|
||||
|
||||
if (!callback || !callback->channel || !callback->channel->Write)
|
||||
if (!callback->channel || !callback->channel->Write)
|
||||
{
|
||||
WLog_ERR(TAG, "callback=%p, channel=%p, write=%p", callback,
|
||||
(callback ? callback->channel : NULL),
|
||||
|
Loading…
x
Reference in New Issue
Block a user