Skip to content

Commit f5fb6bc

Browse files
RobinKastbergfrkv
authored andcommitted
[nrf fromtree] tests: kernel: workq_stop uninitialized variable
test_k_workqueue_stop uses an uninitialized variable, causing sporadic test failures. Signed-off-by: Robin Kastberg <[email protected]> (cherry picked from commit 75daa43)
1 parent 04518af commit f5fb6bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/kernel/workq/work_queue/src/start_stop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ZTEST(workqueue_api, test_k_work_queue_stop)
2525
{
2626
size_t i;
2727
struct k_work work;
28-
struct k_work_q work_q;
28+
struct k_work_q work_q = {0};
2929
struct k_work works[NUM_TEST_ITEMS];
3030
struct k_work_queue_config cfg = {
3131
.name = "test_work_q",

0 commit comments

Comments
 (0)