comctl32/tests: Remove a dead assignment from dpa.c (Cppcheck)

Bruno Jesus 00cpxxx at gmail.com
Thu Oct 30 21:32:04 CDT 2014


[dlls\comctl32\tests\dpa.c:274] -> [dlls\comctl32\tests\dpa.c:275]:
(performance) Variable 'p' is reassigned a value before the old one
has been used.
-------------- next part --------------
diff --git a/dlls/comctl32/tests/dpa.c b/dlls/comctl32/tests/dpa.c
index 644f3aa..4eb32a4 100644
--- a/dlls/comctl32/tests/dpa.c
+++ b/dlls/comctl32/tests/dpa.c
@@ -271,7 +271,7 @@ static void test_dpa(void)
     ok(rc, "dw2=0x%x\n", dw2);
 
     /* Clone into an old DPA */
-    p = NULL; SetLastError(ERROR_SUCCESS);
+    SetLastError(ERROR_SUCCESS);
     p = pDPA_Clone(dpa, dpa3);
     ok(p == dpa3, "p=%p\n", p);
     rc=CheckDPA(dpa3, 0x123456, &dw3);


More information about the wine-patches mailing list