Fix syntax error in the !HAVE_SETENV case.
authorTor Lillqvist <tml@iki.fi>
Fri, 8 Aug 2003 20:38:15 +0000 (20:38 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Fri, 8 Aug 2003 20:38:15 +0000 (20:38 +0000)
2003-08-08  Tor Lillqvist  <tml@iki.fi>

* glib/gutils.c (g_setenv): Fix syntax error in the !HAVE_SETENV
case.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gutils.c

index 3fe837a..f689c18 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 3fe837a..f689c18 100644 (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
index 3fe837a..f689c18 100644 (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
index 3fe837a..f689c18 100644 (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
index 3fe837a..f689c18 100644 (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
index 3fe837a..f689c18 100644 (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
index 18ef828..c98f362 100644 (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;