[PATCH] ntdll: Avoid shadowing size variable

Marcus Meissner meissner at suse.de
Wed Oct 19 18:53:36 CDT 2011


Hi,

size is used twice here, and both times SIZE_T. The uses
dont overlap, so remove one of them.

Ciao, Marcus
---
 dlls/ntdll/heap.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/heap.c b/dlls/ntdll/heap.c
index 2e945e9..022045f 100644
--- a/dlls/ntdll/heap.c
+++ b/dlls/ntdll/heap.c
@@ -655,8 +655,9 @@ static void HEAP_MakeInUseBlockFree( SUBHEAP *subheap, ARENA_INUSE *pArena )
     if (((char *)pFree == (char *)subheap->base + subheap->headerSize) &&
         (subheap != &subheap->heap->subheap))
     {
-        SIZE_T size = 0;
         void *addr = subheap->base;
+
+        size = 0;
         /* Remove the free block from the list */
         list_remove( &pFree->entry );
         /* Remove the subheap from the list */
-- 
1.7.1




More information about the wine-patches mailing list