summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/TMaction.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/TMaction.c b/src/TMaction.c
index 7c19ef9..53dce40 100644
--- a/src/TMaction.c
+++ b/src/TMaction.c
@@ -808,9 +808,11 @@ void XtGetActionList(
list = *actions_return = (XtActionList)
__XtMalloc(*num_actions_return * sizeof(XtActionsRec));
table = GetClassActions(widget_class);
- for (i= (*num_actions_return); --i >= 0; list++, table++) {
- list->string = XrmQuarkToString(table->signature);
- list->proc = table->proc;
+ if (table != NULL) {
+ for (i= (*num_actions_return); --i >= 0; list++, table++) {
+ list->string = XrmQuarkToString(table->signature);
+ list->proc = table->proc;
+ }
}
}
UNLOCK_PROCESS;