summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_tmpstr.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2015-02-10 09:53:29 +0000
committerTom Hacohen <tom@stosb.com>2015-02-10 09:53:29 +0000
commitb5011fa867efed123986b340b3187c8147ab5524 (patch)
tree20678533a79fdc4c76294c9b508c7274dd91d43e /src/lib/eina/eina_tmpstr.c
parentb643dabc36bc1153467fc1b4a1fe8edfdc543cdd (diff)
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.
Diffstat (limited to '')
-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