From 92805f360f9a936ba3b3bc6f9ad06df5b35ee9bb Mon Sep 17 00:00:00 2001 From: CapXilinx Date: Fri, 6 Jan 2017 16:52:11 +0100 Subject: [PATCH] Fixes test for no empty socket timer available --- source/tests/ports/socket_timer_tests.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/tests/ports/socket_timer_tests.cpp b/source/tests/ports/socket_timer_tests.cpp index 113c22c8ab..2f0aa0f904 100644 --- a/source/tests/ports/socket_timer_tests.cpp +++ b/source/tests/ports/socket_timer_tests.cpp @@ -26,5 +26,6 @@ TEST(SocketTimer, GetAvailableEmptySocketTimer) { TEST(SocketTimer, NoEmptySocketTimerAvailable) { SocketTimer timers[10]; + memset( timers, 0, sizeof(timers) ); POINTERS_EQUAL( NULL, GetEmptySocketTimer(timers, 10) ); }