[PATCH 18/19] Initialize padding bits to 0 in ErrorConnMax()

Alan Coopersmith alan.coopersmith at oracle.com
Sun Jun 24 10:25:25 PDT 2012


Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 os/connection.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/os/connection.c b/os/connection.c
index 039942f..e9be03b 100644
--- a/os/connection.c
+++ b/os/connection.c
@@ -891,7 +891,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;
-- 
1.7.9.2



More information about the xorg-devel mailing list