tests: arch: arm: arm_thread_swap: use memset() instead of memcpy()

According to comment memset() should be used instead of memcpy().
There is no need to access to address 0x0.
Fixes #28691

Signed-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
This commit is contained in:
Alexandre Bourdiol 2020-09-25 10:09:03 +02:00 committed by Ioannis Glaropoulos
commit d800bdfa7d

View file

@ -406,7 +406,7 @@ void test_arm_thread_swap(void)
/* Clear the thread's floating-point callee-saved registers' container.
* The container will, later, be populated by the swap mechanism.
*/
memcpy(&_current->arch.preempt_float, 0,
memset(&_current->arch.preempt_float, 0,
sizeof(struct _preempt_float));
/* Randomize the FP callee-saved registers at test initialization */