eina/eina_stringshare - + NULL Checking.

SVN revision: 70596
This commit is contained in:
ChunEon Park 2012-05-02 05:05:10 +00:00
parent c3920319ee
commit a2d58503e2
1 changed files with 3 additions and 0 deletions

View File

@ -765,6 +765,9 @@ EAPI int
eina_stringshare_strlen(Eina_Stringshare *str)
{
int len;
if (!str) return 0;
/* special cases */
if (str[0] == '\0')
return 0;