Fix for g_datalist_id_set_full() use (error is deeper down, some internal

Fix for g_datalist_id_set_full() use (error is deeper down, some internal
funcs weren't checking that things were initialized.)
This commit is contained in:
Elliot Lee 1998-11-19 04:52:26 +00:00
parent b5dd475c8a
commit f809ca7c11
10 changed files with 70 additions and 0 deletions

View File

@ -1,3 +1,11 @@
Wed Nov 18 1998 Elliot Lee <sopwith@redhat.com>
. gdataset.c: There was a code path into g_data_set_internal
through a function (g_datalist_id_set_full). Neither function
checked for g_dataset_init having been run, but
g_data_set_internal used the memchunk. I added
a check into g_data_set_internal so it will do the
initialization if needed. (There's probably a better way.)
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org>
* glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste

View File

@ -1,3 +1,11 @@
Wed Nov 18 1998 Elliot Lee <sopwith@redhat.com>
. gdataset.c: There was a code path into g_data_set_internal
through a function (g_datalist_id_set_full). Neither function
checked for g_dataset_init having been run, but
g_data_set_internal used the memchunk. I added
a check into g_data_set_internal so it will do the
initialization if needed. (There's probably a better way.)
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org>
* glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste

View File

@ -1,3 +1,11 @@
Wed Nov 18 1998 Elliot Lee <sopwith@redhat.com>
. gdataset.c: There was a code path into g_data_set_internal
through a function (g_datalist_id_set_full). Neither function
checked for g_dataset_init having been run, but
g_data_set_internal used the memchunk. I added
a check into g_data_set_internal so it will do the
initialization if needed. (There's probably a better way.)
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org>
* glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste

View File

@ -1,3 +1,11 @@
Wed Nov 18 1998 Elliot Lee <sopwith@redhat.com>
. gdataset.c: There was a code path into g_data_set_internal
through a function (g_datalist_id_set_full). Neither function
checked for g_dataset_init having been run, but
g_data_set_internal used the memchunk. I added
a check into g_data_set_internal so it will do the
initialization if needed. (There's probably a better way.)
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org>
* glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste

View File

@ -1,3 +1,11 @@
Wed Nov 18 1998 Elliot Lee <sopwith@redhat.com>
. gdataset.c: There was a code path into g_data_set_internal
through a function (g_datalist_id_set_full). Neither function
checked for g_dataset_init having been run, but
g_data_set_internal used the memchunk. I added
a check into g_data_set_internal so it will do the
initialization if needed. (There's probably a better way.)
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org>
* glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste

View File

@ -1,3 +1,11 @@
Wed Nov 18 1998 Elliot Lee <sopwith@redhat.com>
. gdataset.c: There was a code path into g_data_set_internal
through a function (g_datalist_id_set_full). Neither function
checked for g_dataset_init having been run, but
g_data_set_internal used the memchunk. I added
a check into g_data_set_internal so it will do the
initialization if needed. (There's probably a better way.)
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org>
* glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste

View File

@ -1,3 +1,11 @@
Wed Nov 18 1998 Elliot Lee <sopwith@redhat.com>
. gdataset.c: There was a code path into g_data_set_internal
through a function (g_datalist_id_set_full). Neither function
checked for g_dataset_init having been run, but
g_data_set_internal used the memchunk. I added
a check into g_data_set_internal so it will do the
initialization if needed. (There's probably a better way.)
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org>
* glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste

View File

@ -1,3 +1,11 @@
Wed Nov 18 1998 Elliot Lee <sopwith@redhat.com>
. gdataset.c: There was a code path into g_data_set_internal
through a function (g_datalist_id_set_full). Neither function
checked for g_dataset_init having been run, but
g_data_set_internal used the memchunk. I added
a check into g_data_set_internal so it will do the
initialization if needed. (There's probably a better way.)
Mon Nov 16 07:48:06 1998 Tim Janik <timj@gtk.org>
* glib.h (g_bit_nth_msf): fixed off-by-one error, so we don't waste

View File

@ -174,6 +174,9 @@ g_data_set_internal (GData **datalist,
{
register GData *list;
if (!g_dataset_location_ht)
g_data_initialize ();
list = *datalist;
if (!data)
{

View File

@ -174,6 +174,9 @@ g_data_set_internal (GData **datalist,
{
register GData *list;
if (!g_dataset_location_ht)
g_data_initialize ();
list = *datalist;
if (!data)
{