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:
Stefan Schmidt 2020-04-17 14:34:21 +02:00
parent 1c971fbe40
commit 7452700618
1 changed files with 5 additions and 2 deletions

View File

@ -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);
}
}