Revision: 7028
Author:   ek.kato
Date:     Sun May  8 20:01:37 2011
Log:      * helper/dict-dict.c (uim_dict_open) : Fix a bug which was
  introduced in r6513.

http://code.google.com/p/uim/source/detail?r=7028

Modified:
 /trunk/helper/dict-dict.c

=======================================
--- /trunk/helper/dict-dict.c   Thu Jan  6 18:09:56 2011
+++ /trunk/helper/dict-dict.c   Sun May  8 20:01:37 2011
@@ -54,7 +54,6 @@
 #endif
   NULL
 };
-static unsigned int nr_classes = sizeof(classes) / sizeof(uim_dict_class *);

 uim_dict *
 uim_dict_open(const char *identifier)
@@ -63,7 +62,7 @@
   uim_dict *dict;

   /* FIXME! use hash table? */
-  for (i = 0; i < nr_classes; i++) {
+  for (i = 0; i < classes[i]; i++) {
     dict = classes[i]->open(identifier);
     if (dict)
       return dict;

Reply via email to