Rob Shearman : server: Initialise the apc_call_t union in async_set_result to all zero to avoid a Valgrind warning .
Alexandre Julliard
julliard at winehq.org
Thu Dec 27 08:31:31 CST 2007
Module: wine
Branch: master
Commit: 0b0c75ed19b13cea00d763b2ea0fb7bbbc1a0828
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0b0c75ed19b13cea00d763b2ea0fb7bbbc1a0828
Author: Rob Shearman <rob at codeweavers.com>
Date: Thu Dec 27 13:50:35 2007 +0000
server: Initialise the apc_call_t union in async_set_result to all zero to avoid a Valgrind warning.
---
server/async.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/server/async.c b/server/async.c
index baed133..879616d 100644
--- a/server/async.c
+++ b/server/async.c
@@ -263,6 +263,7 @@ void async_set_result( struct object *obj, unsigned int status, unsigned long to
if (async->data.apc)
{
apc_call_t data;
+ memset( &data, 0, sizeof(data) );
data.type = APC_USER;
data.user.func = async->data.apc;
data.user.args[0] = (unsigned long)async->data.arg;
More information about the wine-cvs
mailing list