From 869c0e860fcf0851ef1751ca9187599913ca056a Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 16 Sep 2020 18:37:55 +0000 Subject: Fix some warnings, GitHub issue 2382. --- utf8.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utf8.c') diff --git a/utf8.c b/utf8.c index 36c9daad..88dbdb7a 100644 --- a/utf8.c +++ b/utf8.c @@ -101,9 +101,9 @@ utf8_put_item(const char *data, size_t size, u_int *index) ui = utf8_item_by_data(data, size); if (ui != NULL) { + *index = ui->index; log_debug("%s: found %.*s = %u", __func__, (int)size, data, *index); - *index = ui->index; return (0); } @@ -118,8 +118,8 @@ utf8_put_item(const char *data, size_t size, u_int *index) ui->size = size; RB_INSERT(utf8_data_tree, &utf8_data_tree, ui); - log_debug("%s: added %.*s = %u", __func__, (int)size, data, *index); *index = ui->index; + log_debug("%s: added %.*s = %u", __func__, (int)size, data, *index); return (0); } -- cgit v1.2.3