]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
sigsegv: Reduce scope of local variables.
authorBruno Haible <bruno@clisp.org>
Wed, 10 Dec 2025 09:21:50 +0000 (10:21 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 10 Dec 2025 09:21:50 +0000 (10:21 +0100)
* lib/stackvma.c (vma_iterate): M.

ChangeLog
lib/stackvma.c

index 233cdec768648ed50c8cee3b339915b0ea69bd93..b2f3d49805d6be6adca409b78807c8fb90faa3bc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2025-12-10  Bruno Haible  <bruno@clisp.org>
+
+       sigsegv: Reduce scope of local variables.
+       * lib/stackvma.c (vma_iterate): M.
+
 2025-12-09  Bruno Haible  <bruno@clisp.org>
 
        lib: Reduce scope of local variables.
index 66bdf3295633581f97510429f17fabb5e536009b..c45f764c20a3824fda87f9a6095538d1470c4c88 100644 (file)
@@ -2069,10 +2069,8 @@ vma_iterate (struct callback_locals *locals)
 
   for (prmap_t *mp = maps; mp < maps_end; mp++)
     {
-      uintptr_t start, end;
-
-      start = (uintptr_t) mp->pr_vaddr;
-      end = start + mp->pr_size;
+      uintptr_t start = (uintptr_t) mp->pr_vaddr;
+      uintptr_t end = start + mp->pr_size;
       if (start <= auxmap_start && auxmap_end - 1 <= end - 1)
         {
           /* Consider [start,end-1] \ [auxmap_start,auxmap_end-1]