}
else if (*p == 0)
{
- eina_strbuf_append_length(sbuf, s, p - s);
- s = NULL;
+ if (s)
+ {
+ eina_strbuf_append_length(sbuf, s, p - s);
+ s = NULL;
+ }
+ else
+ {
+ ERR("There is a invalid markup tag. Please check the text.");
+ }
}
if (*p == 0)
break;
* mark the start of the tag */
tag_start = p;
tag_end = NULL;
- eina_strbuf_append_length(sbuf, s, p - s);
- s = NULL;
+ if (s)
+ {
+ eina_strbuf_append_length(sbuf, s, p - s);
+ s = NULL;
+ }
+ else
+ {
+ ERR("There is a invalid markup tag. Please check the text.");
+ }
}
}
else if (*p == '>')
* the start of the escape sequence */
esc_start = p;
esc_end = NULL;
- eina_strbuf_append_length(sbuf, s, p - s);
- s = NULL;
+ if (s)
+ {
+ eina_strbuf_append_length(sbuf, s, p - s);
+ s = NULL;
+ }
+ else
+ {
+ ERR("There is a invalid markup tag. Please check the text.");
+ }
}
}
else if (*p == ';')