diff --git a/tests/kernel/sleep/src/usleep.c b/tests/kernel/sleep/src/usleep.c index 18e8f35b115d..5060bd529731 100644 --- a/tests/kernel/sleep/src/usleep.c +++ b/tests/kernel/sleep/src/usleep.c @@ -65,7 +65,7 @@ ZTEST_USER(sleep, test_usleep) { int retries = 0; - int64_t elapsed_ms; + int64_t elapsed_ms = 0; while (retries < RETRIES) { int64_t start_ms;