From: caro Date: Wed, 22 Aug 2012 06:57:55 +0000 (+0000) Subject: eina: don't rely on the order of the declaration of the variables X-Git-Tag: submit/2.0alpha-wayland/20121127.222009~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43d4786f4357800fd6fa5a10b8e7aacf643f1029;p=profile%2Fivi%2Feina.git eina: don't rely on the order of the declaration of the variables git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@75517 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- 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, ...) static char * _eina_file_escape(const char *path, int *length) { - char *result = strdup(path ? path : ""); - char *p = result; - char *q = result; - int len; + char *result; + char *p; + char *q; + size_t len; + + result = strdup(path ? path : ""); + p = result; + q = result; if (!result) return NULL;