eina: don't rely on the order of the declaration of the variables

SVN revision: 75517
This commit is contained in:
Vincent Torri 2012-08-22 06:57:55 +00:00
parent 89eaea1c65
commit 106997e132
1 changed files with 8 additions and 4 deletions

View File

@ -501,10 +501,14 @@ slprintf(char *str, size_t size, const char *format, ...)
static char * static char *
_eina_file_escape(const char *path, int *length) _eina_file_escape(const char *path, int *length)
{ {
char *result = strdup(path ? path : ""); char *result;
char *p = result; char *p;
char *q = result; char *q;
int len; size_t len;
result = strdup(path ? path : "");
p = result;
q = result;
if (!result) if (!result)
return NULL; return NULL;