summaryrefslogtreecommitdiff
path: root/legacy/eina
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-08-22 06:57:55 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-08-22 06:57:55 +0000
commit106997e132e4d14824cb09a9cbe4513cc395e616 (patch)
tree3bb9899b23fa42555d9bee06356535b685277c0a /legacy/eina
parent89eaea1c65eca6d1f20ad853121c0a88b89474f7 (diff)
eina: don't rely on the order of the declaration of the variables
SVN revision: 75517
Diffstat (limited to 'legacy/eina')
-rw-r--r--legacy/eina/src/lib/eina_file.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/legacy/eina/src/lib/eina_file.c b/legacy/eina/src/lib/eina_file.c
index bdfe2a76a8..d34f917b1b 100644
--- a/legacy/eina/src/lib/eina_file.c
+++ b/legacy/eina/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;