mirror of https://github.com/FreeRDP/FreeRDP
Merge pull request #3783 from chipitsine/master
fix several defects found by cppcheck
This commit is contained in:
commit
3115c1e28d
|
@ -469,11 +469,12 @@ int tsmf_window_unmap(TSMFGstreamerDecoder* decoder)
|
|||
int tsmf_window_destroy(TSMFGstreamerDecoder* decoder)
|
||||
{
|
||||
struct X11Handle* hdl;
|
||||
decoder->ready = FALSE;
|
||||
|
||||
if (!decoder)
|
||||
return -1;
|
||||
|
||||
decoder->ready = FALSE;
|
||||
|
||||
if (decoder->media_type != TSMF_MAJOR_TYPE_VIDEO)
|
||||
return -3;
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
#define SSE3_SCD_ROUTINE(_name_, _type_, _fallback_, _op_, _slowWay_) \
|
||||
static pstatus_t _name_(const _type_ *pSrc, UINT32 val, _type_ *pDst, UINT32 len) \
|
||||
{ \
|
||||
INT32 shifts; \
|
||||
INT32 shifts = 0; \
|
||||
UINT32 offBeatMask; \
|
||||
const _type_ *sptr = pSrc; \
|
||||
_type_ *dptr = pDst; \
|
||||
|
@ -190,7 +190,7 @@
|
|||
#define SSE3_SCD_PRE_ROUTINE(_name_, _type_, _fallback_, _op_, _slowWay_) \
|
||||
pstatus_t _name_(const _type_ *pSrc, _type_ val, _type_ *pDst, INT32 len) \
|
||||
{ \
|
||||
int shifts; \
|
||||
int shifts = 0; \
|
||||
UINT32 offBeatMask; \
|
||||
const _type_ *sptr = pSrc; \
|
||||
_type_ *dptr = pDst; \
|
||||
|
@ -295,7 +295,7 @@
|
|||
#define SSE3_SSD_ROUTINE(_name_, _type_, _fallback_, _op_, _slowWay_) \
|
||||
pstatus_t _name_(const _type_ *pSrc1, const _type_ *pSrc2, _type_ *pDst, UINT32 len) \
|
||||
{ \
|
||||
int shifts; \
|
||||
int shifts = 0; \
|
||||
UINT32 offBeatMask; \
|
||||
const _type_ *sptr1 = pSrc1; \
|
||||
const _type_ *sptr2 = pSrc2; \
|
||||
|
|
|
@ -440,7 +440,7 @@ static int x11_shadow_pointer_alpha_update(x11ShadowSubsystem* subsystem)
|
|||
|
||||
static int x11_shadow_query_cursor(x11ShadowSubsystem* subsystem, BOOL getImage)
|
||||
{
|
||||
int x, y, n, k;
|
||||
int x = 0, y = 0, n, k;
|
||||
rdpShadowServer* server;
|
||||
rdpShadowSurface* surface;
|
||||
server = subsystem->server;
|
||||
|
|
Loading…
Reference in New Issue