e_util_strcmp now checks if ptrs are equal before running strcmp

SVN revision: 81336
This commit is contained in:
Mike Blumenkrantz 2012-12-19 09:39:35 +00:00
parent 24ce5a79a3
commit 91aad68829
1 changed files with 4 additions and 1 deletions

View File

@ -206,7 +206,10 @@ EAPI int
e_util_strcmp(const char *s1, const char *s2)
{
if ((s1) && (s2))
return strcmp(s1, s2);
{
if (s1 == s2) return 0;
return strcmp(s1, s2);
}
return 0x7fffffff;
}