Searched refs:new_node (Results 1 – 1 of 1) sorted by relevance
30 struct settings_list_node *new_node; in add_key() local46 new_node = k_malloc(sizeof(struct settings_list_node)); in add_key()47 TEST_ASSERT(new_node != NULL, "Failed to malloc new_node"); in add_key()49 new_node->key = k_malloc(sizeof(char) * key_size); in add_key()50 TEST_ASSERT(new_node->key != NULL, "Failed to malloc new_node->key"); in add_key()52 memcpy(new_node->key, key, sizeof(char) * key_size); in add_key()54 sys_slist_append(&settings_list, &new_node->node); in add_key()