diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2022-06-17 20:44:12 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2022-06-18 06:36:49 -0400 |
commit | 806aefc8c6175b6252a300905a327e9d60939af7 (patch) | |
tree | f6413008b2fc8c274598c89e70faf147c45b0d4d /src/SetValues.c | |
parent | a80c543bb9955199619a2cb6280b89a879fd8811 (diff) | |
download | xorg-lib-libXt-806aefc8c6175b6252a300905a327e9d60939af7.tar.gz |
cppcheck fixes (const, null dereferencing, uninitialized, scope)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/SetValues.c')
-rw-r--r-- | src/SetValues.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SetValues.c b/src/SetValues.c index a326b0f..d05fcc5 100644 --- a/src/SetValues.c +++ b/src/SetValues.c @@ -201,7 +201,6 @@ XtSetValues(register Widget w, ArgList args, Cardinal num_args) double oldcCache[20], reqcCache[20]; Cardinal widgetSize, constraintSize; Boolean redisplay, cleared_rect_obj = False; - XtGeometryResult result; XtWidgetGeometry geoReq, geoReply; WidgetClass wc; ConstraintWidgetClass cwc = NULL; @@ -324,6 +323,8 @@ XtSetValues(register Widget w, ArgList args, Cardinal num_args) } if (geoReq.request_mode != 0) { + XtGeometryResult result; + /* Pass on any requests for unchanged geometry values */ if (geoReq.request_mode != (CWX | CWY | CWWidth | CWHeight | CWBorderWidth)) { |