Don't shadow size parameter

This commit is contained in:
Matthias Clasen
2006-12-17 14:54:01 +00:00
parent 16953c313a
commit 80cc5b6c3e
2 changed files with 10 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
2006-12-17 Matthias Clasen <mclasen@redhat.com>
* glib/gstring.c (g_string_chunk_new): Don't shadow size.
(#386760, Kazuki IWAMOTO)
2006-12-16 Matthias Clasen <mclasen@redhat.com>
* glib/gstring.c: Move more documentation inline.

View File

@@ -139,15 +139,15 @@ GStringChunk*
g_string_chunk_new (gsize size)
{
GStringChunk *new_chunk = g_new (GStringChunk, 1);
gsize size = 1;
gsize actual_size = 1;
size = nearest_power (1, size);
actual_size = nearest_power (1, size);
new_chunk->const_table = NULL;
new_chunk->storage_list = NULL;
new_chunk->storage_next = size;
new_chunk->default_size = size;
new_chunk->this_size = size;
new_chunk->storage_next = actual_size;
new_chunk->default_size = actual_size;
new_chunk->this_size = actual_size;
return new_chunk;
}