From 13fe4d4758c111a659c97356c7faf8bddeef336c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erkki=20Sepp=C3=A4l=C3=A4?= 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 Backported-to-NX-by: Ulrich Sibiller --- nx-X11/lib/X11/GetProp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nx-X11/lib') diff --git a/nx-X11/lib/X11/GetProp.c b/nx-X11/lib/X11/GetProp.c index 4149199f5..9eb422ee3 100644 --- a/nx-X11/lib/X11/GetProp.c +++ b/nx-X11/lib/X11/GetProp.c @@ -47,7 +47,7 @@ XGetWindowProperty( { xGetPropertyReply reply; register xGetPropertyReq *req; - xError error; + xError error = {0}; /* Always initialize return values, in case callers fail to initialize them and fail to check the return code for an error. */ -- cgit v1.2.3