+2006-01-17 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gkeyfile.c (g_key_file_get_groups): Correct a g_new0()
+ call. (#327421, Morten Welinder)
+
2006-01-17 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gthreadpool.c: To avoid deadlocks get rid of the settings
+2006-01-17 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gkeyfile.c (g_key_file_get_groups): Correct a g_new0()
+ call. (#327421, Morten Welinder)
+
2006-01-17 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gthreadpool.c: To avoid deadlocks get rid of the settings
+2006-01-17 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/gkeyfile.c (g_key_file_get_groups): Correct a g_new0()
+ call. (#327421, Morten Welinder)
+
2006-01-17 Sebastian Wilhelmi <seppi@seppi.de>
* glib/gthreadpool.c: To avoid deadlocks get rid of the settings
+2006-01-17 Matthias Clasen <mclasen@redhat.com>
+
+ * glib/tmpl/memory.sgml: Add a note about casting the results
+ of g_new() and g_new0().
+
2006-01-16 Matthias Clasen <mclasen@redhat.com>
* === Released 2.9.3 ===
The returned pointer is cast to a pointer to the given type.
If @n_structs is 0 it returns %NULL.
</para>
+<para>
+Since the returned pointer is already casted to the right type,
+it is normally unnecessary to cast it explicitly, and doing
+so might hide memory allocation errors.
+</para>
@struct_type: the type of the elements to allocate.
@n_structs: the number of elements to allocate.
The returned pointer is cast to a pointer to the given type.
If @n_structs is 0 it returns %NULL.
</para>
+<para>
+Since the returned pointer is already casted to the right type,
+it is normally unnecessary to cast it explicitly, and doing
+so might hide memory allocation errors.
+</para>
@struct_type: the type of the elements to allocate.
@n_structs: the number of elements to allocate.
* list) is always the comment group at the top,
* which we skip
*/
- groups = (gchar **) g_new0 (gchar **, num_groups);
+ groups = g_new0 (gchar *, num_groups);
group_node = g_list_last (key_file->groups);