eina: don't rely on the order of the declaration of the variables
authorcaro <caro>
Wed, 22 Aug 2012 06:57:55 +0000 (06:57 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 22 Aug 2012 06:57:55 +0000 (06:57 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@75517 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_file.c

index bdfe2a7..d34f917 100644 (file)
@@ -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;