Commit 13fe4d47 authored by Erkki Seppälä's avatar Erkki Seppälä Committed by Ulrich Sibiller

GetProp: Zero-initialized error so its resourceID field is initialized

Using uninitialized value "error.resourceID" in call to function "_XError" Reviewed-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: 's avatarErkki Seppälä <erkki.seppala@vincit.fi> Signed-off-by: 's avatarAnder Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com> Signed-off-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: 's avatarUlrich Sibiller <uli42@gmx.de>
parent 7992a987
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment