Skip to content
Commit c6b663e5 authored by Fabian Kainka's avatar Fabian Kainka Committed by Anas Nashif
Browse files

drivers: modem: initialize variables to avoid warn



The variables 'first' and 'next' in function 'stats_buffer_list_first()'
and 'stats_buffer_list_next()' were potentially used uninitialized.

Depending on the compiler and target architecture, this can lead to
different behavior, including warnings or errors when using strict
warning flags.

By initializing these pointers to 'NULL', we ensure consistent and
expected behavior across all toolchains and configurations.

Signed-off-by: default avatarFabian Kainka <kainka@cognid.de>
parent 5f6fc8ad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment