From 956fa518a7cd213e3023691b33747448931a3d7a Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Tue, 15 Oct 2019 15:46:17 -0700 Subject: [PATCH] [tests] update test_child to use Clear() instead of memset (#4248) --- tests/unit/test_child.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test_child.cpp b/tests/unit/test_child.cpp index 52074f8f1..ae0deec8a 100644 --- a/tests/unit/test_child.cpp +++ b/tests/unit/test_child.cpp @@ -143,7 +143,7 @@ void TestChildIp6Address(void) //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - printf("Child state after init"); - memset(&child, 0, sizeof(child)); + child.Clear(); VerifyChildIp6Addresses(child, 0, NULL); printf(" -- PASS\n");