Diff between 1896700957e42919e283168e68598ff41b829c8c and ffdaeed4171ab90271ff111d47471b7874a81f81
Changed Files
| File | Additions | Deletions | Status |
| mesh/node.c | +2 | -5 | modified |
Full Patch
diff --git a/mesh/node.c b/mesh/node.c
index 11b0c94..35293e0 100644
--- a/mesh/node.c
+++ b/mesh/node.c
@@ -326,16 +326,13 @@ static bool add_element_from_storage(struct mesh_node *node,
ele->idx = db_ele->index;
ele->location = db_ele->location;
-
-
- if (!ele->models)
- ele->models = l_queue_new();
+ ele->models = l_queue_new();
+ l_queue_push_tail(node->elements, ele);
if (!mesh_model_add_from_storage(node, ele->idx, ele->models,
db_ele->models))
return false;
- l_queue_push_tail(node->elements, ele);
return true;
}