forked from enlightenment/efl
Eina tmpstr: Fix tmpstr_strlen.
Weird. This is the code I had, I don't know how it got lost. Good job to Daniel Kolesa for spotting this.
This commit is contained in:
parent
b643dabc36
commit
b5011fa867
|
@ -118,7 +118,8 @@ eina_tmpstr_del(Eina_Tmpstr *tmpstr)
|
|||
EAPI size_t
|
||||
eina_tmpstr_strlen(Eina_Tmpstr *tmpstr)
|
||||
{
|
||||
return (tmpstr) ? eina_tmpstr_len(tmpstr) : 0;
|
||||
if (!tmpstr) return 0;
|
||||
return eina_tmpstr_len(tmpstr) + 1;
|
||||
}
|
||||
|
||||
EAPI size_t
|
||||
|
|
Loading…
Reference in New Issue