Commit 0b0c75ed authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

server: Initialise the apc_call_t union in async_set_result to all zero to avoid…

server: Initialise the apc_call_t union in async_set_result to all zero to avoid a Valgrind warning.
parent cc405b15
...@@ -263,6 +263,7 @@ void async_set_result( struct object *obj, unsigned int status, unsigned long to ...@@ -263,6 +263,7 @@ void async_set_result( struct object *obj, unsigned int status, unsigned long to
if (async->data.apc) if (async->data.apc)
{ {
apc_call_t data; apc_call_t data;
memset( &data, 0, sizeof(data) );
data.type = APC_USER; data.type = APC_USER;
data.user.func = async->data.apc; data.user.func = async->data.apc;
data.user.args[0] = (unsigned long)async->data.arg; data.user.args[0] = (unsigned long)async->data.arg;
......
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