(M17N_OBJECT_REGISTER): Check the member `used' (not
authorhanda <handa>
Mon, 29 Mar 2004 03:50:03 +0000 (03:50 +0000)
committerhanda <handa>
Mon, 29 Mar 2004 03:50:03 +0000 (03:50 +0000)
`count') to initialize the array.

src/internal.h

index 597abc8..5df41ea 100644 (file)
@@ -345,7 +345,7 @@ typedef struct
 #define M17N_OBJECT_REGISTER(array, object)                    \
   if (mdebug__flag & MDEBUG_FINI)                              \
     {                                                          \
-      if ((array).count == 0)                                  \
+      if ((array).used == 0)                                   \
        MLIST_INIT1 (&(array), objects, 256);                   \
       (array).count++;                                         \
       MLIST_APPEND1 (&(array), objects, object, MERROR_OBJECT);        \