From 2b16a7e683e355c9746290b2cee2fd0dd2bf342a Mon Sep 17 00:00:00 2001 From: Erkki Seppälä Date: Mon, 31 Jan 2011 14:02:10 +0200 Subject: GetProp: Zero-initialized error so its resourceID field is initialized MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Using uninitialized value "error.resourceID" in call to function "_XError" Reviewed-by: Alan Coopersmith Reviewed-by: Erkki Seppälä Signed-off-by: Ander Conselvan de Oliveira Signed-off-by: Alan Coopersmith --- src/GetProp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3