dlls/rpcrt4/rpc_server.c initiale variable
Gerald Pfeifer
gerald at pfeifer.com
Wed Oct 24 06:23:49 CDT 2007
It seems there are some code paths (in the error case?) which may
leave this unitialized. At least the compiler thinks so, and I
could not convince myself otherwise reading this code for a while.
ChangeLog:
Make sure response is always initialized in RPCRT4_process_packet().
Gerald
Index: dlls/rpcrt4/rpc_server.c
===================================================================
RCS file: /home/wine/wine/dlls/rpcrt4/rpc_server.c,v
retrieving revision 1.85
diff -u -3 -p -r1.85 rpc_server.c
--- dlls/rpcrt4/rpc_server.c 22 Aug 2007 11:24:40 -0000 1.85
+++ dlls/rpcrt4/rpc_server.c 24 Oct 2007 11:19:58 -0000
@@ -167,7 +167,7 @@ static void RPCRT4_process_packet(RpcCon
RpcServerInterface* sif;
RPC_DISPATCH_FUNCTION func;
UUID *object_uuid;
- RpcPktHdr *response;
+ RpcPktHdr *response = 0;
void *buf = msg->Buffer;
RPC_STATUS status;
BOOL exception;
More information about the wine-patches
mailing list