check for key_compare_func != NULL (reported by Michal Kara).

Fri Sep 18 03:41:20 1998  Tim Janik  <timj@gtk.org>

        * gtree.c (g_tree_new): check for key_compare_func != NULL (reported
        by Michal Kara).
This commit is contained in:
Tim Janik 1998-09-18 02:12:32 +00:00 committed by Tim Janik
parent ebc96dde35
commit ac3a8ac9a7
10 changed files with 44 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Fri Sep 18 03:41:20 1998 Tim Janik <timj@gtk.org>
* gtree.c (g_tree_new): check for key_compare_func != NULL (reported
by Michal Kara).
Thu Sep 17 18:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
* config.h.in: removed from repository

View File

@ -1,3 +1,8 @@
Fri Sep 18 03:41:20 1998 Tim Janik <timj@gtk.org>
* gtree.c (g_tree_new): check for key_compare_func != NULL (reported
by Michal Kara).
Thu Sep 17 18:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
* config.h.in: removed from repository

View File

@ -1,3 +1,8 @@
Fri Sep 18 03:41:20 1998 Tim Janik <timj@gtk.org>
* gtree.c (g_tree_new): check for key_compare_func != NULL (reported
by Michal Kara).
Thu Sep 17 18:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
* config.h.in: removed from repository

View File

@ -1,3 +1,8 @@
Fri Sep 18 03:41:20 1998 Tim Janik <timj@gtk.org>
* gtree.c (g_tree_new): check for key_compare_func != NULL (reported
by Michal Kara).
Thu Sep 17 18:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
* config.h.in: removed from repository

View File

@ -1,3 +1,8 @@
Fri Sep 18 03:41:20 1998 Tim Janik <timj@gtk.org>
* gtree.c (g_tree_new): check for key_compare_func != NULL (reported
by Michal Kara).
Thu Sep 17 18:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
* config.h.in: removed from repository

View File

@ -1,3 +1,8 @@
Fri Sep 18 03:41:20 1998 Tim Janik <timj@gtk.org>
* gtree.c (g_tree_new): check for key_compare_func != NULL (reported
by Michal Kara).
Thu Sep 17 18:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
* config.h.in: removed from repository

View File

@ -1,3 +1,8 @@
Fri Sep 18 03:41:20 1998 Tim Janik <timj@gtk.org>
* gtree.c (g_tree_new): check for key_compare_func != NULL (reported
by Michal Kara).
Thu Sep 17 18:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
* config.h.in: removed from repository

View File

@ -1,3 +1,8 @@
Fri Sep 18 03:41:20 1998 Tim Janik <timj@gtk.org>
* gtree.c (g_tree_new): check for key_compare_func != NULL (reported
by Michal Kara).
Thu Sep 17 18:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
* config.h.in: removed from repository

View File

@ -87,6 +87,8 @@ g_tree_new (GCompareFunc key_compare_func)
{
GRealTree *rtree;
g_return_val_if_fail (key_compare_func != NULL, NULL);
rtree = g_new (GRealTree, 1);
rtree->root = NULL;
rtree->key_compare = key_compare_func;

View File

@ -87,6 +87,8 @@ g_tree_new (GCompareFunc key_compare_func)
{
GRealTree *rtree;
g_return_val_if_fail (key_compare_func != NULL, NULL);
rtree = g_new (GRealTree, 1);
rtree->root = NULL;
rtree->key_compare = key_compare_func;