quiet shadow warnings and remove redundant NULL check
[blender.git] / source / blender / editors / interface / interface_handlers.c
index b3df719d95abe016c9c65ccb3e0522c893dbd01e..622559cd30f26870e870437e001e0f2fa888c01a 100644 (file)
@@ -6623,8 +6623,8 @@ static bool ui_mouse_motion_towards_check(uiBlock *block, uiPopupBlockHandle *me
                /* am I the last menu (test) */
                ARegion *ar = menu->region->next;
                do {
-                       uiBlock *block = ar->uiblocks.first;
-                       if (block && ui_block_is_menu(block)) {
+                       uiBlock *block_iter = ar->uiblocks.first;
+                       if (block_iter && ui_block_is_menu(block_iter)) {
                                return true;
                        }
                } while ((ar = ar->next));