Commit 80cc5b6c authored by Matthias Clasen's avatar Matthias Clasen

Don't shadow size parameter

parent 16953c31
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.
......
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment