forked from enlightenment/efl
Edje: check parameter validity
This commit is contained in:
parent
49f0f09661
commit
b29340b3a1
|
@ -357,6 +357,7 @@ _edje_object_language_set(Eo *obj, Edje *ed, const char *locale)
|
||||||
char *signal;
|
char *signal;
|
||||||
size_t length;
|
size_t length;
|
||||||
|
|
||||||
|
if (!locale) return;
|
||||||
lookup = strstr(locale, ".");
|
lookup = strstr(locale, ".");
|
||||||
length = lookup ? (size_t)(lookup - locale) : strlen(locale);
|
length = lookup ? (size_t)(lookup - locale) : strlen(locale);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue