test: net: lwm2m: Fix build warning about unitialized vars
Few variables were uninitialized on certain cases. Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
This commit is contained in:
parent
14573fcbf6
commit
0f6ded7989
1 changed files with 4 additions and 4 deletions
|
@ -49,10 +49,10 @@ static void assert_path_list_order(sys_slist_t *lwm2m_path_list)
|
|||
struct lwm2m_obj_path_list *prev = NULL;
|
||||
struct lwm2m_obj_path_list *entry, *tmp;
|
||||
|
||||
uint16_t obj_id_max;
|
||||
uint16_t obj_inst_id_max;
|
||||
uint16_t res_id_max;
|
||||
uint16_t res_inst_id_max;
|
||||
uint16_t obj_id_max = 0;
|
||||
uint16_t obj_inst_id_max = 0;
|
||||
uint16_t res_id_max = 0;
|
||||
uint16_t res_inst_id_max = 0;
|
||||
|
||||
if (sys_slist_is_empty(lwm2m_path_list)) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue