From b62e3f39768cd6fc5db9e4be65b47c53719598c9 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Thu, 8 Sep 2022 19:06:29 -0400 Subject: additional cppcheck-scope warning Signed-off-by: Thomas E. Dickey --- src/Filter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */ -- cgit v1.2.1