summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-31 10:07:29 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2020-03-31 14:56:46 +0200
commitb5a4dbc3667e2771c8e27257f7705422e8fd8fde (patch)
treec117759d7a2ec6cc6f7d9ce90a7667b19710c993
parent455b07ec62e42c246095d78d2506343761480a28 (diff)
exactness: error when _src_unit is NULL
if _src_unit is NULL, the write here would delete the actions, with this commit we ensure that this is printing an error. Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11627
-rw-r--r--src/bin/exactness/player.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/bin/exactness/player.c b/src/bin/exactness/player.c
index 47c83927e8..1240070f37 100644
--- a/src/bin/exactness/player.c
+++ b/src/bin/exactness/player.c
@@ -1010,12 +1010,11 @@ _write_unit_file(void)
1010{ 1010{
1011 if (_dest && _dest_unit && _ready_to_write) 1011 if (_dest && _dest_unit && _ready_to_write)
1012 { 1012 {
1013 if (_src_unit) 1013 Exactness_Unit *tmp = NULL;
1014 { 1014
1015 Exactness_Unit *tmp = NULL; 1015 EINA_SAFETY_ON_NULL_RETURN(_src_unit);
1016 if (_src_type == FTYPE_EXU) tmp = exactness_unit_file_read(_src_filename); 1016 if (_src_type == FTYPE_EXU) tmp = exactness_unit_file_read(_src_filename);
1017 _dest_unit->actions = tmp->actions; 1017 _dest_unit->actions = tmp->actions;
1018 }
1019 exactness_unit_file_write(_dest_unit, _dest); 1018 exactness_unit_file_write(_dest_unit, _dest);
1020 } 1019 }
1021} 1020}