From ad218672bdb75b6b86aa3aa45384fbea79d9e811 Mon Sep 17 00:00:00 2001 From: Alessandro Pignotti Date: Fri, 5 Oct 2012 12:51:56 -0700 Subject: [PATCH] Remove an optimization that is thread unsafe --- src/xlibi18n/lcConv.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/xlibi18n/lcConv.c b/src/xlibi18n/lcConv.c index 9797e7e..305778b 100644 --- a/src/xlibi18n/lcConv.c +++ b/src/xlibi18n/lcConv.c @@ -63,12 +63,6 @@ get_converter( if (list->from_lcd == from_lcd && list->to_lcd == to_lcd && list->from_type == from_type && list->to_type == to_type) { - if (prev && prev != conv_list) { /* XXX */ - prev->next = list->next; - list->next = conv_list; - conv_list = list; - } - return (*list->converter)(from_lcd, list->from, to_lcd, list->to); } -- 1.7.9.5