summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-05-10 14:28:49 -0700
committerCedric BAIL <cedric.bail@free.fr>2019-05-11 08:52:05 -0700
commit9c992c05d5494764df209faf1a36c04972814628 (patch)
tree34639a6180aafb2c993011d0f7ee3432b2a8452d /src/lib/eina
parente23e7be07c19ee96bd51615250031c163b2aba50 (diff)
eina: refactor and simplify vpath.
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8882
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_vpath.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/lib/eina/eina_vpath.c b/src/lib/eina/eina_vpath.c
index aa7b46b..87b8566 100644
--- a/src/lib/eina/eina_vpath.c
+++ b/src/lib/eina/eina_vpath.c
@@ -258,18 +258,10 @@ _eina_vpath_resolve(const char *path, char *str, size_t size)
258 { 258 {
259 const char *p, *end, *meta; 259 const char *p, *end, *meta;
260 char *name; 260 char *name;
261 int max_len = strlen(path);
262 Eina_Bool found = EINA_FALSE; 261 Eina_Bool found = EINA_FALSE;
263 262
264 for (p = path + 2; p <= path + max_len - 2; p++) 263 end = p = strstr(path + 2, ":)");
265 { 264 if (p) found = EINA_TRUE;
266 if ((p[0] ==':') && (p[1] == ')'))
267 {
268 end = p;
269 found = EINA_TRUE;
270 break;
271 }
272 }
273 p += 2; 265 p += 2;
274 266
275 if (!found) 267 if (!found)