Skip to content

Commit 2712d74

Browse files
Flavio Ceolinnashif
authored andcommitted
tests: power: Fix Coverity error about uninitialized variable
Just initialize a variable with sane values. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
1 parent 7dad856 commit 2712d74

File tree

1 file changed

+1
-1
lines changed
  • tests/subsys/power/power_mgmt/src

1 file changed

+1
-1
lines changed

tests/subsys/power/power_mgmt/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ __weak bool pm_policy_low_power_devices(enum pm_state state)
6767
/* Our PM policy handler */
6868
struct pm_state_info pm_policy_next_state(int ticks)
6969
{
70-
struct pm_state_info info;
70+
struct pm_state_info info = {};
7171

7272
/* make sure this is idle thread */
7373
zassert_true(z_is_idle_thread_object(_current), NULL);

0 commit comments

Comments
 (0)