[PATCH 23/32] [libx11] Using uninitialized value "error.resourceID" in call to function "_XError"

Erkki Seppälä erkki.seppala at vincit.fi
Wed Jan 26 23:54:06 PST 2011


Reviewed-by: Erkki Seppälä <erkki.seppala at vincit.fi>
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan-de-oliveira at nokia.com>
---
 src/GetProp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/GetProp.c b/src/GetProp.c
index a80c19c..5d6e0b8 100644
--- a/src/GetProp.c
+++ b/src/GetProp.c
@@ -46,7 +46,7 @@ XGetWindowProperty(
 {
     xGetPropertyReply reply;
     register xGetPropertyReq *req;
-    xError error;
+    xError error = {0};
 
     LockDisplay(dpy);
     GetReq (GetProperty, req);
-- 
1.7.0.4



More information about the xorg-devel mailing list