aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorErkki Seppälä <erkki.seppala@vincit.fi>2011-01-31 14:02:10 +0200
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:27 +0200
commit13fe4d4758c111a659c97356c7faf8bddeef336c (patch)
tree14e11d36582fbda830240d33aa2210ecf67c7774 /nx-X11
parent7992a98737cfc8a61b996951cb126820c87277dd (diff)
downloadnx-libs-13fe4d4758c111a659c97356c7faf8bddeef336c.tar.gz
nx-libs-13fe4d4758c111a659c97356c7faf8bddeef336c.tar.bz2
nx-libs-13fe4d4758c111a659c97356c7faf8bddeef336c.zip
GetProp: Zero-initialized error so its resourceID field is initialized
Using uninitialized value "error.resourceID" in call to function "_XError" Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Erkki Seppälä <erkki.seppala@vincit.fi> Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/lib/X11/GetProp.c2
1 files changed, 1 insertions, 1 deletions
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. */