aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/charset.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/charset.c b/src/charset.c
index 29da443505c..1902fe8be8c 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -197,9 +197,11 @@ string_to_non_ascii_char (str, len, actual_len, exclude_tail_garbage)
197 int cmpchar_id = str_cmpchar_id (str, bytes); 197 int cmpchar_id = str_cmpchar_id (str, bytes);
198 198
199 if (cmpchar_id >= 0) 199 if (cmpchar_id >= 0)
200 c = MAKE_COMPOSITE_CHAR (cmpchar_id); 200 {
201 if (exclude_tail_garbage) 201 c = MAKE_COMPOSITE_CHAR (cmpchar_id);
202 bytes = cmpchar_table[cmpchar_id]->len; 202 if (exclude_tail_garbage)
203 bytes = cmpchar_table[cmpchar_id]->len;
204 }
203 } 205 }
204 else 206 else
205 { 207 {