Paul Vriens : ws2_32/tests: Remove redundant NULL check before HeapFree.

Alexandre Julliard julliard at winehq.org
Tue Sep 9 05:51:04 CDT 2008


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

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Tue Sep  9 11:45:40 2008 +0200

ws2_32/tests: Remove redundant NULL check before HeapFree.

---

 dlls/ws2_32/tests/sock.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 5883078..4b8c57f 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -2187,8 +2187,7 @@ static void test_write_events(void)
     }
 
 end:
-    if (buffer != NULL)
-        HeapFree(GetProcessHeap(), 0, buffer);
+    HeapFree(GetProcessHeap(), 0, buffer);
     if (src != INVALID_SOCKET)
         closesocket(src);
     if (dst != INVALID_SOCKET)




More information about the wine-cvs mailing list