summaryrefslogtreecommitdiff
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
commitb2209d19ac0c409f426693e703fa48d9025660cf (patch)
treea25e68c68f88eab2a059e09a04148438467bc1c9
parentdeb58691ca8456ea02a4f38f002173780e07f271 (diff)
eina: don't rely on the order of the declaration of the variables
SVN revision: 75517
-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;