[glib: 3/10] Fix redefinition of local variable in gobject/gtype.c
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 3/10] Fix redefinition of local variable in gobject/gtype.c
- Date: Fri, 18 Feb 2022 13:39:26 +0000 (UTC)
commit 84c5675cef8944d33c1714d0f001c269299d1e21
Author: Loic Le Page <llepage fluendo com>
Date: Wed Jan 19 18:55:44 2022 +0100
Fix redefinition of local variable in gobject/gtype.c
gobject/gtype.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gobject/gtype.c b/gobject/gtype.c
index 071429934..b19a306d9 100644
--- a/gobject/gtype.c
+++ b/gobject/gtype.c
@@ -2199,8 +2199,8 @@ 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]