Initialize padding bits to 0 in ErrorConnMax()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Keith Packard <keithp@keithp.com> Tested-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
bed610fcae
commit
7a29f68782
@ -892,7 +892,7 @@ ErrorConnMax(XtransConnInfo trans_conn)
|
|||||||
{
|
{
|
||||||
int fd = _XSERVTransGetConnectionNumber(trans_conn);
|
int fd = _XSERVTransGetConnectionNumber(trans_conn);
|
||||||
xConnSetupPrefix csp;
|
xConnSetupPrefix csp;
|
||||||
char pad[3];
|
char pad[3] = { 0, 0, 0 };
|
||||||
struct iovec iov[3];
|
struct iovec iov[3];
|
||||||
char byteOrder = 0;
|
char byteOrder = 0;
|
||||||
int whichbyte = 1;
|
int whichbyte = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user