Fixed uninitialized values.

This commit is contained in:
Armin Novak 2017-07-13 12:19:10 +02:00
parent e8b9e4f512
commit b51a103b70
3 changed files with 7 additions and 5 deletions
client/X11
libfreerdp

View File

@ -1603,8 +1603,7 @@ static UINT xf_cliprdr_clipboard_file_range_failure(wClipboardDelegate* delegate
xfClipboard* xf_clipboard_new(xfContext* xfc)
{
int i;
int n;
int i, n = 0;
rdpChannels* channels;
xfClipboard* clipboard;
@ -1664,8 +1663,6 @@ xfClipboard* xf_clipboard_new(xfContext* xfc)
"Warning: Using clipboard redirection without XFIXES extension is strongly discouraged!");
#endif
n = 0;
clipboard->clientFormats[n].atom = XInternAtom(xfc->display, "_FREERDP_RAW", False);
clipboard->clientFormats[n].formatId = CF_RAW;
n++;

View File

@ -167,6 +167,11 @@ BOOL certificate_read_x509_certificate(rdpCertBlob* cert, rdpCertInfo* info)
int exponent_length;
int error = 0;
if (!cert || !info)
return FALSE;
memset(info, 0, sizeof(rdpCertInfo));
s = Stream_New(cert->data, cert->length);
if (!s)

View File

@ -2162,7 +2162,7 @@ static int test_PrimitivesYCbCr(const primitives_t* prims, UINT32 format, prim_s
BYTE* actual1;
BYTE* expected;
int margin = 1;
INT16* pYCbCr[3];
INT16* pYCbCr[3] = { NULL, NULL, NULL };
const UINT32 srcStride = roi.width * 2;
const UINT32 dstStride = roi.width * GetBytesPerPixel(format);
const UINT32 srcSize = srcStride * roi.height;