diff options
author | walter harms <wharms@bfs.de> | 2010-10-01 15:13:43 +0200 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2010-10-05 08:18:54 -0700 |
commit | 0c968d108d8575db0149922b8375533fc54d0b7a (patch) | |
tree | 54854dd1a2ee49a29294a95c477cc8335e7a0127 | |
parent | 6e4dbf06d4d049666cf81207d9f853a0a40c71b7 (diff) |
Honor that GetClassActions() may return NULL.
Signed-off-by: Walter <wharms@bfs.de>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | src/TMaction.c | 8 |
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; |