edje_cc out - double check list element ptr to make coverity happy

fix CID 1374483
This commit is contained in:
Carsten Haitzler 2017-07-23 19:33:58 +09:00
parent 3826f21a29
commit 4df92f88d0
1 changed files with 1 additions and 1 deletions

View File

@ -3610,7 +3610,7 @@ _data_model_id_update(Eina_List *models_unused_list)
#define PART_DESC_MODEL_ID_UPDATE \
EINA_LIST_FOREACH(models_unused_list, l3, iui) \
{ \
if (part_desc_mesh_node->mesh_node.mesh.id == iui->old_id) \
if ((iui) && (part_desc_mesh_node->mesh_node.mesh.id == iui->old_id)) \
{ \
part_desc_mesh_node->mesh_node.mesh.id = iui->new_id; \
break; \