Fix redefinition of local variable in gobject/gtype.c

This commit is contained in:
Loic Le Page 2022-01-19 18:55:44 +01:00 committed by Loïc Le Page
parent 5f5a4a74b4
commit 84c5675cef

View File

@ -2199,7 +2199,7 @@ type_class_init_Wm (TypeNode *node,
if (pclass)
{
TypeNode *pnode = lookup_type_node_I (pclass->g_type);
pnode = lookup_type_node_I (pclass->g_type);
memcpy (class, pclass, pnode->data->class.class_size);
memcpy (G_STRUCT_MEMBER_P (class, ALIGN_STRUCT (node->data->class.class_size)), G_STRUCT_MEMBER_P (pclass, ALIGN_STRUCT (pnode->data->class.class_size)), pnode->data->class.class_private_size);