summaryrefslogtreecommitdiff
path: root/MirOTR/striphtml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'MirOTR/striphtml.cpp')
-rw-r--r--MirOTR/striphtml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/MirOTR/striphtml.cpp b/MirOTR/striphtml.cpp
index 31eceef..c76b0f7 100644
--- a/MirOTR/striphtml.cpp
+++ b/MirOTR/striphtml.cpp
@@ -78,7 +78,7 @@ void endtag_cb (void *cbdata, ekhtml_string_t *tag) {
void data_cb (void *cbdata, ekhtml_string_t *text) {
STRIPHTML_DATA *data = (STRIPHTML_DATA *)cbdata;
if(text->len <= 0)
- return;
+ return;
char* s = (char*) mir_calloc(text->len+1);
decode_html_entities_utf8(s, text->str, text->len);