summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErkki Seppälä <erkki.seppala@vincit.fi>2011-01-31 14:02:10 +0200
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-02-01 23:46:32 -0800
commit2b16a7e683e355c9746290b2cee2fd0dd2bf342a (patch)
tree360ec102138b3d915027db8f96bb3bc09fbee9ce
parent85e9f38e016137f0ff2791eb0d092ab027382d2c (diff)
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>
-rw-r--r--src/GetProp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GetProp.c b/src/GetProp.c
index a80c19c5..5d6e0b8c 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);