Work around an bug in Mac OS < 10.3. (#156446, Dave MacLachlan)

2004-11-07  Matthias Clasen  <mclasen@redhat.com>

	* glib/gutils.c (g_get_any_init): Work around an bug
	in Mac OS < 10.3.  (#156446, Dave MacLachlan)
This commit is contained in:
Matthias Clasen 2004-11-07 06:29:58 +00:00 committed by Matthias Clasen
parent 9153616cf5
commit 6a1d7478d7
6 changed files with 29 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-11-07 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_get_any_init): Work around an bug
in Mac OS < 10.3. (#156446, Dave MacLachlan)
2004-11-06 Tor Lillqvist <tml@iki.fi>
* glibconfig.h.win32.in: Cosmetics: move the G_GNUC_INTERNAL

View File

@ -1,3 +1,8 @@
2004-11-07 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_get_any_init): Work around an bug
in Mac OS < 10.3. (#156446, Dave MacLachlan)
2004-11-06 Tor Lillqvist <tml@iki.fi>
* glibconfig.h.win32.in: Cosmetics: move the G_GNUC_INTERNAL

View File

@ -1,3 +1,8 @@
2004-11-07 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_get_any_init): Work around an bug
in Mac OS < 10.3. (#156446, Dave MacLachlan)
2004-11-06 Tor Lillqvist <tml@iki.fi>
* glibconfig.h.win32.in: Cosmetics: move the G_GNUC_INTERNAL

View File

@ -1,3 +1,8 @@
2004-11-07 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_get_any_init): Work around an bug
in Mac OS < 10.3. (#156446, Dave MacLachlan)
2004-11-06 Tor Lillqvist <tml@iki.fi>
* glibconfig.h.win32.in: Cosmetics: move the G_GNUC_INTERNAL

View File

@ -1,3 +1,8 @@
2004-11-07 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_get_any_init): Work around an bug
in Mac OS < 10.3. (#156446, Dave MacLachlan)
2004-11-06 Tor Lillqvist <tml@iki.fi>
* glibconfig.h.win32.in: Cosmetics: move the G_GNUC_INTERNAL

View File

@ -1061,7 +1061,10 @@ g_get_any_init (void)
do
{
g_free (buffer);
buffer = g_malloc (bufsize);
/* we allocate 6 extra bytes to work around a bug in
* Mac OS < 10.3. See #156446
*/
buffer = g_malloc (bufsize + 6);
errno = 0;
# ifdef HAVE_POSIX_GETPWUID_R