diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2022-06-14 20:25:20 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2022-06-18 06:36:36 -0400 |
commit | a6685523e189c6330ba7007ecaf8f6d462b63024 (patch) | |
tree | a646fbda0518e415e8f570af4517dae9734395ab /src/TMaction.c | |
parent | 248f980a67ac721882465c48d60039ac70d3fa82 (diff) | |
download | xorg-lib-libXt-a6685523e189c6330ba7007ecaf8f6d462b63024.tar.gz |
cppcheck and clang --analyze fixes
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/TMaction.c')
-rw-r--r-- | src/TMaction.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/TMaction.c b/src/TMaction.c index 5e843b5..accd20c 100644 --- a/src/TMaction.c +++ b/src/TMaction.c @@ -574,7 +574,6 @@ void _XtBindActions(Widget widget, XtTM tm) { XtTranslations xlations = tm->translations; - TMSimpleStateTree stateTree; int globalUnbound = 0; Cardinal i; TMBindData bindData = (TMBindData) tm->proc_table; @@ -587,6 +586,8 @@ _XtBindActions(Widget widget, XtTM tm) return; for (i = 0; i < xlations->numStateTrees; i++) { + TMSimpleStateTree stateTree; + stateTree = (TMSimpleStateTree) xlations->stateTreeTbl[i]; if (bindData->simple.isComplex) { complexBindProcs = TMGetComplexBindEntry(bindData, i); |