From: handa Date: Mon, 29 Mar 2004 03:50:03 +0000 (+0000) Subject: (M17N_OBJECT_REGISTER): Check the member `used' (not X-Git-Tag: REL-1-0-2~15 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=468b4d2a9995168e48140249072eaa809d8041f6;p=m17n%2Fm17n-lib.git (M17N_OBJECT_REGISTER): Check the member `used' (not `count') to initialize the array. --- 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); \