forked from enlightenment/efl
exactness-inspect: remove abscure xor check
this is a obscure check, if this was ever reached, then it would simply crash, because one pointer will be NULL, but strcmp will be called on it. CID 1419854 Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D11722
This commit is contained in:
parent
e7f4bc4c2a
commit
114412d547
|
@ -326,13 +326,8 @@ _grp_text_get(void *data, Evas_Object *gl, const char *part EINA_UNUSED)
|
||||||
Eo *gl2 = eina_list_nth(_gls, 1);
|
Eo *gl2 = eina_list_nth(_gls, 1);
|
||||||
Exactness_Unit *unit1 = efl_key_data_get(gl1, "unit");
|
Exactness_Unit *unit1 = efl_key_data_get(gl1, "unit");
|
||||||
Exactness_Unit *unit2 = efl_key_data_get(gl2, "unit");
|
Exactness_Unit *unit2 = efl_key_data_get(gl2, "unit");
|
||||||
if (!!unit1->fonts_path || !!unit2->fonts_path)
|
sprintf(buf2, "Fonts directory comparison: "LDIFF(%s)"/"RDIFF(%s),
|
||||||
sprintf(buf2, "Fonts directory comparison: XXXXX");
|
unit1 ? unit1->fonts_path : "(NULL)", unit2 ? unit2->fonts_path : "(NULL)");
|
||||||
else if (!strcmp(unit1->fonts_path, unit2->fonts_path))
|
|
||||||
sprintf(buf2, "Fonts directory comparison: %s", unit1->fonts_path);
|
|
||||||
else
|
|
||||||
sprintf(buf2, "Fonts directory comparison: "LDIFF(%s)"/"RDIFF(%s),
|
|
||||||
unit1->fonts_path, unit2->fonts_path);
|
|
||||||
}
|
}
|
||||||
return strdup(buf2);
|
return strdup(buf2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue