Edje: check parameter validity

This commit is contained in:
Daniel Zaoui 2016-04-05 10:32:59 +03:00
parent 49f0f09661
commit b29340b3a1
1 changed files with 1 additions and 0 deletions

View File

@ -357,6 +357,7 @@ _edje_object_language_set(Eo *obj, Edje *ed, const char *locale)
char *signal;
size_t length;
if (!locale) return;
lookup = strstr(locale, ".");
length = lookup ? (size_t)(lookup - locale) : strlen(locale);