diff options
author | Matthias Clasen <mclasen@redhat.com> | 2006-01-18 03:51:39 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2006-01-18 03:51:39 +0000 |
commit | 402a1081aef6cd276c0636557413ed5942a771ef (patch) | |
tree | 97a76e0ae924f677070ae9f7eac0b1f9171f5a85 /glib | |
parent | f4484f51bf7a876565697a6d093e5d7accff20f3 (diff) | |
download | glib-402a1081aef6cd276c0636557413ed5942a771ef.tar.gz |
Add a note about casting the results of g_new() and g_new0().
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().
Diffstat (limited to 'glib')
-rw-r--r-- | glib/gkeyfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glib/gkeyfile.c b/glib/gkeyfile.c index d77a1ae16..7a8a7832b 100644 --- a/glib/gkeyfile.c +++ b/glib/gkeyfile.c @@ -1107,7 +1107,7 @@ g_key_file_get_groups (GKeyFile *key_file, * 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); |