Fixed uninitialized values.
This commit is contained in:
parent
e8b9e4f512
commit
b51a103b70
@ -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++;
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user