summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_tmpstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina/eina_tmpstr.c')
-rw-r--r--src/lib/eina/eina_tmpstr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eina/eina_tmpstr.c b/src/lib/eina/eina_tmpstr.c
index a49279b698..43824b759b 100644
--- a/src/lib/eina/eina_tmpstr.c
+++ b/src/lib/eina/eina_tmpstr.c
@@ -118,7 +118,8 @@ eina_tmpstr_del(Eina_Tmpstr *tmpstr)
118EAPI size_t 118EAPI size_t
119eina_tmpstr_strlen(Eina_Tmpstr *tmpstr) 119eina_tmpstr_strlen(Eina_Tmpstr *tmpstr)
120{ 120{
121 return (tmpstr) ? eina_tmpstr_len(tmpstr) : 0; 121 if (!tmpstr) return 0;
122 return eina_tmpstr_len(tmpstr) + 1;
122} 123}
123 124
124EAPI size_t 125EAPI size_t