summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-04-17 15:15:41 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2020-04-17 17:14:57 +0200
commit04567a16db062449ac5ab02dc24984c063bcde73 (patch)
treed525afe70c59068fbc1941cf73b7c3a08da56160
parent66adfc97f6ff8b03b813fa59207de410ec34d600 (diff)
exactness-inspect: unit1 can never be NULL
checkinf for it beeing NULL means that we would have to equip every usage of unit1 with a check, but that is useless. CID 1419859 Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11721
-rw-r--r--src/bin/exactness/inspect.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/exactness/inspect.c b/src/bin/exactness/inspect.c
index 115eab90cb..33bcd23533 100644
--- a/src/bin/exactness/inspect.c
+++ b/src/bin/exactness/inspect.c
@@ -1002,9 +1002,9 @@ _gui_unit_display(Exactness_Unit *unit1, Exactness_Unit *unit2)
1002 } 1002 }
1003 _itc_init(); 1003 _itc_init();
1004 1004
1005 if (unit1->fonts_path || (unit2 && unit2->fonts_path)) 1005 if ((unit1->fonts_path) || (unit2 && unit2->fonts_path))
1006 { 1006 {
1007 if (!_show_only_diffs || !unit1 || !unit2 || 1007 if (!_show_only_diffs || !unit2 ||
1008 !unit1->fonts_path || !unit2->fonts_path || 1008 !unit1->fonts_path || !unit2->fonts_path ||
1009 strcmp(unit1->fonts_path, unit2->fonts_path)) 1009 strcmp(unit1->fonts_path, unit2->fonts_path))
1010 { 1010 {
@@ -1013,7 +1013,7 @@ _gui_unit_display(Exactness_Unit *unit1, Exactness_Unit *unit2)
1013 elm_genlist_item_append(glc, _grp_itc, (void *)EX_FONTS_DIR, NULL, ELM_GENLIST_ITEM_GROUP, NULL, NULL); 1013 elm_genlist_item_append(glc, _grp_itc, (void *)EX_FONTS_DIR, NULL, ELM_GENLIST_ITEM_GROUP, NULL, NULL);
1014 } 1014 }
1015 } 1015 }
1016 itr1 = unit1 ? unit1->actions : NULL; 1016 itr1 = unit1->actions;
1017 itr2 = unit2 ? unit2->actions : NULL; 1017 itr2 = unit2 ? unit2->actions : NULL;
1018 1018
1019 if (itr1 || itr2) 1019 if (itr1 || itr2)
@@ -1047,7 +1047,7 @@ _gui_unit_display(Exactness_Unit *unit1, Exactness_Unit *unit2)
1047 if (itr2) itr2 = eina_list_next(itr2); 1047 if (itr2) itr2 = eina_list_next(itr2);
1048 } 1048 }
1049 1049
1050 itr1 = unit1 ? unit1->imgs : NULL; 1050 itr1 = unit1->imgs;
1051 itr2 = unit2 ? unit2->imgs : NULL; 1051 itr2 = unit2 ? unit2->imgs : NULL;
1052 1052
1053 if (itr1 || itr2) 1053 if (itr1 || itr2)
@@ -1085,7 +1085,7 @@ _gui_unit_display(Exactness_Unit *unit1, Exactness_Unit *unit2)
1085 if (itr2) itr2 = eina_list_next(itr2); 1085 if (itr2) itr2 = eina_list_next(itr2);
1086 } 1086 }
1087 1087
1088 itr1 = unit1 ? unit1->objs : NULL; 1088 itr1 = unit1->objs;
1089 itr2 = unit2 ? unit2->objs : NULL; 1089 itr2 = unit2 ? unit2->objs : NULL;
1090 1090
1091 if (itr1 || itr2) 1091 if (itr1 || itr2)