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:
Tom Hacohen 2015-02-10 09:53:29 +00:00
parent b643dabc36
commit b5011fa867
1 changed files with 2 additions and 1 deletions

View File

@ -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