quartz: Remove an unused variable (PVS-Studio)
Michael Stefaniuc
mstefani at redhat.de
Thu Jan 8 04:10:11 CST 2015
---
dlls/quartz/main.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/quartz/main.c b/dlls/quartz/main.c
index 81f9ab8..b45c55b 100644
--- a/dlls/quartz/main.c
+++ b/dlls/quartz/main.c
@@ -274,11 +274,10 @@ HRESULT __RPC_STUB ICaptureGraphBuilder2_FindInterface_Stub( ICaptureGraphBuilde
const char * qzdebugstr_guid( const GUID * id )
{
int i;
- char * name = NULL;
- for (i=0;InterfaceDesc[i].name && !name;i++) {
+ for (i=0; InterfaceDesc[i].name; i++)
if (IsEqualGUID(&InterfaceDesc[i].riid, id)) return InterfaceDesc[i].name;
- }
+
return debugstr_guid(id);
}
--
1.9.3
More information about the wine-patches
mailing list