Re: [libcroco-list] bug in cr-declaration ?



Hi Rob,

Le dim 04/01/2004 à 17:49, Rob Buis a écrit :
> Hi,
> 
> I think I found a small problem in cr_declaration_unlink.
> It tries to always update the decl list of the parent statement.
> I think this is false, and only makes sense if the declaration to
> be unlinked is the first in the decl list. So I changed it like this,
> and then it seemed to work for me :
> 
> if (children_decl_ptr && *children_decl_ptr)
> 
> to
> 
> if (children_decl_ptr && *children_decl_ptr && *children_decl_ptr == a_decl)

Right, this is a bug and the fix looks good.
It's applied and commited in the CVS Head.

Thank you for reporting this.

Dodji.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]