From: handa Date: Mon, 16 May 2005 13:02:10 +0000 (+0000) Subject: (m17n_object): Be sure to initialize all members. X-Git-Tag: REL-1-3-0~307 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=cd2d763b943e041291fdf003b098848efb40492b;p=m17n%2Fm17n-lib.git (m17n_object): Be sure to initialize all members. --- diff --git a/src/m17n-core.c b/src/m17n-core.c index 10325d6..0761735 100644 --- a/src/m17n-core.c +++ b/src/m17n-core.c @@ -714,6 +714,8 @@ m17n_object (int size, void (*freer) (void *)) M17NObject *obj = malloc (size); obj->ref_count = 1; + obj->ref_count_extended = 0; + obj->flag = 0; obj->u.freer = freer; return obj; }