mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 10:16:17 +01:00
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:
parent
b5dd475c8a
commit
f809ca7c11
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user