server: avoid shadowing a parameter
Austin English
austinenglish at gmail.com
Wed Mar 9 03:08:13 CST 2011
--
-Austin
-------------- next part --------------
diff --git a/server/handle.c b/server/handle.c
index 2aaec37..d86b91b 100644
--- a/server/handle.c
+++ b/server/handle.c
@@ -157,16 +157,16 @@ static void handle_table_destroy( struct object *obj )
{
for (i = 0, entry = table->entries; i <= table->last; i++, entry++)
{
- struct object *obj = entry->ptr;
- if (obj) obj->ops->close_handle( obj, table->process, index_to_handle(i) );
+ struct object *obj_tmp = entry->ptr;
+ if (obj_tmp) obj_tmp->ops->close_handle( obj_tmp, table->process, index_to_handle(i) );
}
}
for (i = 0, entry = table->entries; i <= table->last; i++, entry++)
{
- struct object *obj = entry->ptr;
+ struct object *obj_tmp = entry->ptr;
entry->ptr = NULL;
- if (obj) release_object( obj );
+ if (obj_tmp) release_object( obj_tmp );
}
free( table->entries );
}
More information about the wine-patches
mailing list