forked from enlightenment/efl
exactness: do not access potential NULL pointer
These to code lines should be in one block and not one exectued without the if. CID: 1422198 Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D11726
This commit is contained in:
parent
1c971fbe40
commit
7452700618
|
@ -1014,8 +1014,11 @@ _write_unit_file(void)
|
|||
Exactness_Unit *tmp = NULL;
|
||||
|
||||
EINA_SAFETY_ON_NULL_RETURN(_src_unit);
|
||||
if (_src_type == FTYPE_EXU) tmp = exactness_unit_file_read(_src_filename);
|
||||
_dest_unit->actions = tmp->actions;
|
||||
if (_src_type == FTYPE_EXU)
|
||||
{
|
||||
tmp = exactness_unit_file_read(_src_filename);
|
||||
_dest_unit->actions = tmp->actions;
|
||||
}
|
||||
exactness_unit_file_write(_dest_unit, _dest);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue