[PATCH] initializ CurrentHeader

Marcus Meissner marcus at jet.franken.de
Wed Jan 23 00:58:30 CST 2008


Hi,

Coverity spotted (CID 668) that in the "fail" codepath
CurrentHeader might be used uninitialized.

Ciao, Marcus
---
 dlls/rpcrt4/rpc_message.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/rpcrt4/rpc_message.c b/dlls/rpcrt4/rpc_message.c
index 7cd6723..f56e3a4 100644
--- a/dlls/rpcrt4/rpc_message.c
+++ b/dlls/rpcrt4/rpc_message.c
@@ -806,7 +806,7 @@ RPC_STATUS RPCRT4_Receive(RpcConnection *Connection, RpcPktHdr **Header,
   unsigned long buffer_length;
   unsigned long auth_length;
   unsigned char *auth_data = NULL;
-  RpcPktHdr *CurrentHeader;
+  RpcPktHdr *CurrentHeader = NULL;
   void *payload = NULL;
 
   *Header = NULL;
-- 
1.5.2.4



More information about the wine-patches mailing list