forked from enlightenment/efl
eina/eina_stringshare - + NULL Checking.
SVN revision: 70596
This commit is contained in:
parent
c3920319ee
commit
a2d58503e2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue