forked from enlightenment/efl
Evas textblock: Fixed an issue with string_escaped_get.
SVN revision: 61235
This commit is contained in:
parent
4ef7602216
commit
7c14357161
|
@ -4528,6 +4528,7 @@ static inline int
|
||||||
_escaped_is_eq_and_advance(const char *s, const char *s_end,
|
_escaped_is_eq_and_advance(const char *s, const char *s_end,
|
||||||
const char **p_m, const char *m_end)
|
const char **p_m, const char *m_end)
|
||||||
{
|
{
|
||||||
|
Eina_Bool reached_end;
|
||||||
for (;((s < s_end) && (*p_m < m_end)); s++, (*p_m)++)
|
for (;((s < s_end) && (*p_m < m_end)); s++, (*p_m)++)
|
||||||
{
|
{
|
||||||
if (*s != **p_m)
|
if (*s != **p_m)
|
||||||
|
@ -4537,10 +4538,11 @@ _escaped_is_eq_and_advance(const char *s, const char *s_end,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
reached_end = !**p_m;
|
||||||
if (*p_m < m_end)
|
if (*p_m < m_end)
|
||||||
_escaped_advance_after_end_of_string(p_m);
|
_escaped_advance_after_end_of_string(p_m);
|
||||||
|
|
||||||
return s == s_end;
|
return ((s == s_end) && reached_end);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue