From 468b4d2a9995168e48140249072eaa809d8041f6 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 29 Mar 2004 03:50:03 +0000 Subject: [PATCH] (M17N_OBJECT_REGISTER): Check the member `used' (not `count') to initialize the array. --- src/internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal.h b/src/internal.h index 597abc8..5df41ea 100644 --- a/src/internal.h +++ b/src/internal.h @@ -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); \ -- 1.7.10.4