eina: refactor and simplify vpath.

Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de>
Differential Revision: https://phab.enlightenment.org/D8882
This commit is contained in:
Cedric BAIL 2019-05-10 14:28:49 -07:00
parent e23e7be07c
commit 9c992c05d5
1 changed files with 2 additions and 10 deletions

View File

@ -258,18 +258,10 @@ _eina_vpath_resolve(const char *path, char *str, size_t size)
{
const char *p, *end, *meta;
char *name;
int max_len = strlen(path);
Eina_Bool found = EINA_FALSE;
for (p = path + 2; p <= path + max_len - 2; p++)
{
if ((p[0] ==':') && (p[1] == ')'))
{
end = p;
found = EINA_TRUE;
break;
}
}
end = p = strstr(path + 2, ":)");
if (p) found = EINA_TRUE;
p += 2;
if (!found)