projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8937fd4
)
eina: make sure to cleanup the right string.
author
Cedric BAIL
<cedric@osg.samsung.com>
Fri, 23 Oct 2015 19:32:02 +0000
(12:32 -0700)
committer
Cedric BAIL
<cedric@osg.samsung.com>
Fri, 23 Oct 2015 19:32:02 +0000
(12:32 -0700)
src/lib/eina/eina_file_common.c
patch
|
blob
|
history
diff --git
a/src/lib/eina/eina_file_common.c
b/src/lib/eina/eina_file_common.c
index
62eb617
..
4dee3c7
100644
(file)
--- a/
src/lib/eina/eina_file_common.c
+++ b/
src/lib/eina/eina_file_common.c
@@
-344,6
+344,7
@@
EAPI char *
eina_file_path_sanitize(const char *path)
{
Eina_Tmpstr *result = NULL;
+ char *r;
size_t len;
if (!path) return NULL;
@@
-358,7
+359,10
@@
eina_file_path_sanitize(const char *path)
else
result = path;
- return _eina_file_escape(eina_file_cleanup(result), len);
+ r = _eina_file_escape(strdup(result ? result : ""), len);
+ if (result != path) eina_tmpstr_del(result);
+
+ return r;
}
EAPI Eina_File *