eina_streq should immediately return true if both pointers are the same

This commit is contained in:
Mike Blumenkrantz 2014-12-15 14:21:44 -05:00
parent c970e787d6
commit 5cda4c1eb5
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ eina_streq(const char *a, const char *b)
if ((!a) && (!b)) return EINA_TRUE;
if (!a) return EINA_FALSE;
if (!b) return EINA_FALSE;
if (a == b) return EINA_TRUE;
return !strcmp(a, b);
}