From: Vsevolod Stakhov Date: Sat, 5 May 2018 13:21:23 +0000 (+0100) Subject: [Minor] Disable warning if cannot normalize in-place X-Git-Tag: 1.7.5~67 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=91154ccc0114f1dca3b803a9c9bcfd065297c329;p=rspamd.git [Minor] Disable warning if cannot normalize in-place --- diff --git a/src/libutil/str_util.c b/src/libutil/str_util.c index 6f241b88c..fc8d6637b 100644 --- a/src/libutil/str_util.c +++ b/src/libutil/str_util.c @@ -2062,8 +2062,11 @@ rspamd_normalise_unicode_inplace (rspamd_mempool_t *pool, gchar *start, src + end, nsym - end, &uc_err); if (!U_SUCCESS (uc_err)) { - msg_warn_pool_check ("cannot normalise URL: %s", - u_errorName (uc_err)); + if (uc_err != U_BUFFER_OVERFLOW_ERROR) { + msg_warn_pool_check ("cannot normalise URL: %s", + u_errorName (uc_err)); + } + goto out; } @@ -2077,7 +2080,8 @@ rspamd_normalise_unicode_inplace (rspamd_mempool_t *pool, gchar *start, } *len = nsym; - out: + +out: if (src) { g_free (src);