summaryrefslogtreecommitdiff
path: root/src/Composite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Composite.c')
-rw-r--r--src/Composite.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Composite.c b/src/Composite.c
index a9d13a5..5188514 100644
--- a/src/Composite.c
+++ b/src/Composite.c
@@ -139,7 +139,7 @@ static void InheritAllowsChangeManagedSet(
WidgetClass widget_class)
{
CompositeWidgetClass cc = (CompositeWidgetClass) widget_class;
- CompositeClassExtension ext, super_ext, new_ext;
+ CompositeClassExtension ext, super_ext;
ext = (CompositeClassExtension)
XtGetClassExtension(widget_class,
@@ -158,6 +158,7 @@ static void InheritAllowsChangeManagedSet(
if (super_ext && super_ext->version == XtCompositeExtensionVersion &&
super_ext->record_size == sizeof(CompositeClassExtensionRec) &&
super_ext->allows_change_managed_set) {
+ CompositeClassExtension new_ext;
new_ext = (CompositeClassExtension)
__XtCalloc(1, sizeof(CompositeClassExtensionRec));