summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 7181b75c65..a49279b698 100644
--- a/src/lib/eina/eina_tmpstr.c
+++ b/src/lib/eina/eina_tmpstr.c
@@ -133,8 +133,9 @@ eina_tmpstr_len(Eina_Tmpstr *tmpstr)
133 { 133 {
134 if (s->str == tmpstr) 134 if (s->str == tmpstr)
135 { 135 {
136 size_t ret = s->length;
136 eina_lock_release(&_mutex); 137 eina_lock_release(&_mutex);
137 return s->length; 138 return ret;
138 } 139 }
139 } 140 }
140 eina_lock_release(&_mutex); 141 eina_lock_release(&_mutex);