summaryrefslogtreecommitdiff
path: root/src/Resources.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2022-06-14 20:25:20 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2022-06-18 06:36:36 -0400
commita6685523e189c6330ba7007ecaf8f6d462b63024 (patch)
treea646fbda0518e415e8f570af4517dae9734395ab /src/Resources.c
parent248f980a67ac721882465c48d60039ac70d3fa82 (diff)
downloadxorg-lib-libXt-a6685523e189c6330ba7007ecaf8f6d462b63024.tar.gz
cppcheck and clang --analyze fixes
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/Resources.c')
-rw-r--r--src/Resources.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Resources.c b/src/Resources.c
index 932ba7d..3f225dc 100644
--- a/src/Resources.c
+++ b/src/Resources.c
@@ -1047,7 +1047,6 @@ _XtGetSubresources(Widget w, /* Widget "parent" of subobject
XrmClass *classes, classes_s[50];
XrmQuark quark_cache[100];
XrmQuarkList quark_args;
- XrmResourceList *table;
Cardinal count, ntyped_args = num_typed_args;
XtCacheRef *Resrc = NULL;
@@ -1065,6 +1064,8 @@ _XtGetSubresources(Widget w, /* Widget "parent" of subobject
_XtAllocError(NULL);
}
else {
+ XrmResourceList *table;
+
/* Get full name, class of subobject */
GetNamesAndClasses(w, names, classes);
count -= 2;