summaryrefslogtreecommitdiff
path: root/viewres.c
diff options
context:
space:
mode:
Diffstat (limited to 'viewres.c')
-rw-r--r--viewres.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/viewres.c b/viewres.c
index cb4e9e2..d53e220 100644
--- a/viewres.c
+++ b/viewres.c
@@ -812,10 +812,11 @@ set_node_labels(XmuWidgetNode *node, int depth)
{
Arg args[1];
XmuWidgetNode *child;
- ViewresData *d = VData(node);
+ ViewresData *d;
if (!node)
return;
+ d = VData(node);
XtSetArg(args[0], XtNlabel, (options.show_variable ?
node->label : XmuWnClassname(node)));
XtSetValues(d->instance, args, ONE);