summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2022-09-08 19:06:29 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2022-09-08 20:01:39 -0400
commitb62e3f39768cd6fc5db9e4be65b47c53719598c9 (patch)
treef807a9c9d8ab404aabd576b80dbad94553bcaabe /src
parentded8aa8c97fc90f0c02f26084d118e683163e4ca (diff)
additional cppcheck-scope warning
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src')
-rw-r--r--src/Filter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Filter.c b/src/Filter.c
index c40ae36..55e7418 100644
--- a/src/Filter.c
+++ b/src/Filter.c
@@ -38,7 +38,7 @@ XRenderQueryFilters (Display *dpy, Drawable drawable)
char *name;
char len;
unsigned int i;
- unsigned long nbytes, nbytesAlias, nbytesName, reply_left;
+ unsigned long nbytesName, reply_left;
if (!RenderHasExtension (info))
return NULL;
@@ -69,6 +69,8 @@ XRenderQueryFilters (Display *dpy, Drawable drawable)
if ((rep.length < (INT_MAX >> 2)) &&
(rep.numFilters < ((INT_MAX / 4) / sizeof (char *))) &&
(rep.numAliases < ((INT_MAX / 4) / sizeof (short)))) {
+ unsigned long nbytes, nbytesAlias;
+
/*
* Compute total number of bytes for filter names
*/