aboutsummaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-09-16 20:01:19 +0100
committerThomas Adam <thomas@xteddy.org>2020-09-16 20:01:19 +0100
commitc3e1b841f99383dfd1f9a9535c71b745e89d43fd (patch)
treee2e728cfe898902ac0ea603f00ee5fe8c68a5d4d /utf8.c
parent3c1f34c20809c33508e4e9f47e0fc585ee55d83f (diff)
parent869c0e860fcf0851ef1751ca9187599913ca056a (diff)
downloadrtmux-c3e1b841f99383dfd1f9a9535c71b745e89d43fd.tar.gz
rtmux-c3e1b841f99383dfd1f9a9535c71b745e89d43fd.tar.bz2
rtmux-c3e1b841f99383dfd1f9a9535c71b745e89d43fd.zip
Merge branch 'obsd-master'
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utf8.c b/utf8.c
index e640d845..458363b8 100644
--- a/utf8.c
+++ b/utf8.c
@@ -100,9 +100,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);
}
@@ -117,8 +117,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);
}