Michael Stefaniuc : rpcrt4: Remove redundant "non NULL" check of var cred_dst (coccicheck).

Alexandre Julliard julliard at winehq.org
Thu May 20 11:02:58 CDT 2010


Module: wine
Branch: master
Commit: 9dc835c2bca02b4b10e6897f150fc22852de6b4b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=9dc835c2bca02b4b10e6897f150fc22852de6b4b

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Thu May 20 01:16:34 2010 +0200

rpcrt4: Remove redundant "non NULL" check of var cred_dst (coccicheck).

---

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

diff --git a/dlls/rpcrt4/rpc_binding.c b/dlls/rpcrt4/rpc_binding.c
index a534b7d..d83f53b 100644
--- a/dlls/rpcrt4/rpc_binding.c
+++ b/dlls/rpcrt4/rpc_binding.c
@@ -1303,7 +1303,7 @@ static RPC_STATUS RpcQualityOfService_Create(const RPC_SECURITY_QOS *qos_src, BO
                     cred_dst->User = HeapAlloc(GetProcessHeap(), 0, cred_dst->UserLength * sizeof(WCHAR));
                     cred_dst->Password = HeapAlloc(GetProcessHeap(), 0, cred_dst->PasswordLength * sizeof(WCHAR));
                     cred_dst->Domain = HeapAlloc(GetProcessHeap(), 0, cred_dst->DomainLength * sizeof(WCHAR));
-                    if (!cred_dst || !cred_dst->Password || !cred_dst->Domain) goto error;
+                    if (!cred_dst->Password || !cred_dst->Domain) goto error;
                     MultiByteToWideChar(CP_ACP, 0, (char *)cred_src->User, cred_src->UserLength, cred_dst->User, cred_dst->UserLength);
                     MultiByteToWideChar(CP_ACP, 0, (char *)cred_src->Domain, cred_src->DomainLength, cred_dst->Domain, cred_dst->DomainLength);
                     MultiByteToWideChar(CP_ACP, 0, (char *)cred_src->Password, cred_src->PasswordLength, cred_dst->Password, cred_dst->PasswordLength);




More information about the wine-cvs mailing list