mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
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:
parent
ebc96dde35
commit
ac3a8ac9a7
@ -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>
|
Thu Sep 17 18:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* config.h.in: removed from repository
|
* config.h.in: removed from repository
|
||||||
|
@ -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>
|
Thu Sep 17 18:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* config.h.in: removed from repository
|
* config.h.in: removed from repository
|
||||||
|
@ -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>
|
Thu Sep 17 18:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* config.h.in: removed from repository
|
* config.h.in: removed from repository
|
||||||
|
@ -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>
|
Thu Sep 17 18:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* config.h.in: removed from repository
|
* config.h.in: removed from repository
|
||||||
|
@ -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>
|
Thu Sep 17 18:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* config.h.in: removed from repository
|
* config.h.in: removed from repository
|
||||||
|
@ -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>
|
Thu Sep 17 18:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* config.h.in: removed from repository
|
* config.h.in: removed from repository
|
||||||
|
@ -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>
|
Thu Sep 17 18:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* config.h.in: removed from repository
|
* config.h.in: removed from repository
|
||||||
|
@ -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>
|
Thu Sep 17 18:55:46 PDT 1998 Manish Singh <yosh@gimp.org>
|
||||||
|
|
||||||
* config.h.in: removed from repository
|
* config.h.in: removed from repository
|
||||||
|
@ -87,6 +87,8 @@ g_tree_new (GCompareFunc key_compare_func)
|
|||||||
{
|
{
|
||||||
GRealTree *rtree;
|
GRealTree *rtree;
|
||||||
|
|
||||||
|
g_return_val_if_fail (key_compare_func != NULL, NULL);
|
||||||
|
|
||||||
rtree = g_new (GRealTree, 1);
|
rtree = g_new (GRealTree, 1);
|
||||||
rtree->root = NULL;
|
rtree->root = NULL;
|
||||||
rtree->key_compare = key_compare_func;
|
rtree->key_compare = key_compare_func;
|
||||||
|
2
gtree.c
2
gtree.c
@ -87,6 +87,8 @@ g_tree_new (GCompareFunc key_compare_func)
|
|||||||
{
|
{
|
||||||
GRealTree *rtree;
|
GRealTree *rtree;
|
||||||
|
|
||||||
|
g_return_val_if_fail (key_compare_func != NULL, NULL);
|
||||||
|
|
||||||
rtree = g_new (GRealTree, 1);
|
rtree = g_new (GRealTree, 1);
|
||||||
rtree->root = NULL;
|
rtree->root = NULL;
|
||||||
rtree->key_compare = key_compare_func;
|
rtree->key_compare = key_compare_func;
|
||||||
|
Loading…
Reference in New Issue
Block a user