Fix syntax error in the !HAVE_SETENV case.

2003-08-08  Tor Lillqvist  <tml@iki.fi>

	* glib/gutils.c (g_setenv): Fix syntax error in the !HAVE_SETENV
	case.
This commit is contained in:
Tor Lillqvist 2003-08-08 20:38:15 +00:00 committed by Tor Lillqvist
parent 29606d90b0
commit 63d5300574
7 changed files with 35 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-08-08 Tor Lillqvist <tml@iki.fi>
* glib/gutils.c (g_setenv): Fix syntax error in the !HAVE_SETENV
case.
2003-08-08 Matthias Clasen <maclas@gmx.de>
* tests/env-test.c (main): Remove a test for getenv() behaviour which isn't specified by SUS

View File

@ -1,3 +1,8 @@
2003-08-08 Tor Lillqvist <tml@iki.fi>
* glib/gutils.c (g_setenv): Fix syntax error in the !HAVE_SETENV
case.
2003-08-08 Matthias Clasen <maclas@gmx.de>
* tests/env-test.c (main): Remove a test for getenv() behaviour which isn't specified by SUS

View File

@ -1,3 +1,8 @@
2003-08-08 Tor Lillqvist <tml@iki.fi>
* glib/gutils.c (g_setenv): Fix syntax error in the !HAVE_SETENV
case.
2003-08-08 Matthias Clasen <maclas@gmx.de>
* tests/env-test.c (main): Remove a test for getenv() behaviour which isn't specified by SUS

View File

@ -1,3 +1,8 @@
2003-08-08 Tor Lillqvist <tml@iki.fi>
* glib/gutils.c (g_setenv): Fix syntax error in the !HAVE_SETENV
case.
2003-08-08 Matthias Clasen <maclas@gmx.de>
* tests/env-test.c (main): Remove a test for getenv() behaviour which isn't specified by SUS

View File

@ -1,3 +1,8 @@
2003-08-08 Tor Lillqvist <tml@iki.fi>
* glib/gutils.c (g_setenv): Fix syntax error in the !HAVE_SETENV
case.
2003-08-08 Matthias Clasen <maclas@gmx.de>
* tests/env-test.c (main): Remove a test for getenv() behaviour which isn't specified by SUS

View File

@ -1,3 +1,8 @@
2003-08-08 Tor Lillqvist <tml@iki.fi>
* glib/gutils.c (g_setenv): Fix syntax error in the !HAVE_SETENV
case.
2003-08-08 Matthias Clasen <maclas@gmx.de>
* tests/env-test.c (main): Remove a test for getenv() behaviour which isn't specified by SUS

View File

@ -716,12 +716,15 @@ g_setenv (const gchar *variable,
gboolean overwrite)
{
gint result;
#ifndef HAVE_SETENV
gchar *string;
#endif
g_return_val_if_fail (strchr (variable, '=') == NULL, FALSE);
#ifdef HAVE_SETENV
result = setenv (variable, value, overwrite);
#else
gchar *string;
if (!overwrite && g_getenv (variable) != NULL)
return TRUE;