mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-12 10:45:13 +01:00
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:
parent
29606d90b0
commit
63d5300574
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user