diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-09 19:12:44 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-07-09 22:52:30 -0700 |
commit | 7a29f6878284e2d65e69fcd157aa9ec01d21b3c0 (patch) | |
tree | 6ae1c7994cfa301c9f77a5636e81d12870495f00 /os/connection.c | |
parent | bed610fcae41ddfe21fa9acde599b17d1d15f5d1 (diff) |
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>
Diffstat (limited to 'os/connection.c')
-rw-r--r-- | os/connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/connection.c b/os/connection.c index 344147220..721ad65b3 100644 --- a/os/connection.c +++ b/os/connection.c @@ -892,7 +892,7 @@ ErrorConnMax(XtransConnInfo trans_conn) { int fd = _XSERVTransGetConnectionNumber(trans_conn); xConnSetupPrefix csp; - char pad[3]; + char pad[3] = { 0, 0, 0 }; struct iovec iov[3]; char byteOrder = 0; int whichbyte = 1; |