forked from enlightenment/efl
eina_streq should immediately return true if both pointers are the same
This commit is contained in:
parent
c970e787d6
commit
5cda4c1eb5
|
@ -94,6 +94,7 @@ eina_streq(const char *a, const char *b)
|
||||||
if ((!a) && (!b)) return EINA_TRUE;
|
if ((!a) && (!b)) return EINA_TRUE;
|
||||||
if (!a) return EINA_FALSE;
|
if (!a) return EINA_FALSE;
|
||||||
if (!b) return EINA_FALSE;
|
if (!b) return EINA_FALSE;
|
||||||
|
if (a == b) return EINA_TRUE;
|
||||||
return !strcmp(a, b);
|
return !strcmp(a, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue