diff --git a/tests/kernel/pipe/pipe_api/src/test_pipe_contexts.c b/tests/kernel/pipe/pipe_api/src/test_pipe_contexts.c index 3c7a119bf412..376bf65a97e5 100644 --- a/tests/kernel/pipe/pipe_api/src/test_pipe_contexts.c +++ b/tests/kernel/pipe/pipe_api/src/test_pipe_contexts.c @@ -353,6 +353,8 @@ ZTEST(pipe_api, test_half_pipe_put_get) size_t rd_byte = 0; int ret; + memset(rx_data, 0, sizeof(rx_data)); + /* TESTPOINT: min_xfer > bytes_to_read */ ret = k_pipe_put(&kpipe, &rx_data[0], 1, &rd_byte, 24, K_NO_WAIT); zassert_true(ret == -EINVAL);