[Xcb-commit] xcb/src xcb_conn.c,1.23,1.24
Jamey Sharp
xcb-commit at lists.freedesktop.org
Thu Aug 4 02:17:40 EST 2005
Update of /cvs/xcb/xcb/src
In directory gabe:/tmp/cvs-serv13681/src
Modified Files:
xcb_conn.c
Log Message:
Fix one uninitialized memory warning from Valgrind.
More will have to wait.
Index: xcb_conn.c
===================================================================
RCS file: /cvs/xcb/xcb/src/xcb_conn.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- xcb_conn.c 1 Apr 2005 05:51:02 -0000 1.23
+++ xcb_conn.c 3 Aug 2005 16:17:37 -0000 1.24
@@ -26,6 +26,7 @@
/* Connection management: the core of XCB. */
#include <assert.h>
+#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
@@ -43,6 +44,8 @@
int endian = 0x01020304;
int ret;
+ memset(&out, 0, sizeof(out));
+
/* B = 0x42 = MSB first, l = 0x6c = LSB first */
if(htonl(endian) == endian)
out.byte_order = 0x42;
More information about the xcb-commit
mailing list