summaryrefslogtreecommitdiff
path: root/src/lib/eina_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina_file.c')
-rw-r--r--src/lib/eina_file.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/lib/eina_file.c b/src/lib/eina_file.c
index bdfe2a7..d34f917 100644
--- a/src/lib/eina_file.c
+++ b/src/lib/eina_file.c
@@ -501,10 +501,14 @@ slprintf(char *str, size_t size, const char *format, ...)
501static char * 501static char *
502_eina_file_escape(const char *path, int *length) 502_eina_file_escape(const char *path, int *length)
503{ 503{
504 char *result = strdup(path ? path : ""); 504 char *result;
505 char *p = result; 505 char *p;
506 char *q = result; 506 char *q;
507 int len; 507 size_t len;
508
509 result = strdup(path ? path : "");
510 p = result;
511 q = result;
508 512
509 if (!result) 513 if (!result)
510 return NULL; 514 return NULL;