Changed comment for g_getenv to reflect, that the returned memory must not
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Tue, 18 Apr 2000 13:00:35 +0000 (13:00 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Tue, 18 Apr 2000 13:00:35 +0000 (13:00 +0000)
2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* glib.h: Changed comment for g_getenv to reflect, that the
returned memory must not be freed. Fixes Bug #8983.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib.h
glib/glib.h

index b646c1f..de5ee4d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h: Changed comment for g_getenv to reflect, that the
+       returned memory must not be freed. Fixes Bug #8983.
+
 2000-04-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in, acconfig.h: Add configure test for garbage
index b646c1f..de5ee4d 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h: Changed comment for g_getenv to reflect, that the
+       returned memory must not be freed. Fixes Bug #8983.
+
 2000-04-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in, acconfig.h: Add configure test for garbage
index b646c1f..de5ee4d 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h: Changed comment for g_getenv to reflect, that the
+       returned memory must not be freed. Fixes Bug #8983.
+
 2000-04-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in, acconfig.h: Add configure test for garbage
index b646c1f..de5ee4d 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h: Changed comment for g_getenv to reflect, that the
+       returned memory must not be freed. Fixes Bug #8983.
+
 2000-04-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in, acconfig.h: Add configure test for garbage
index b646c1f..de5ee4d 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h: Changed comment for g_getenv to reflect, that the
+       returned memory must not be freed. Fixes Bug #8983.
+
 2000-04-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in, acconfig.h: Add configure test for garbage
index b646c1f..de5ee4d 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h: Changed comment for g_getenv to reflect, that the
+       returned memory must not be freed. Fixes Bug #8983.
+
 2000-04-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in, acconfig.h: Add configure test for garbage
index b646c1f..de5ee4d 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h: Changed comment for g_getenv to reflect, that the
+       returned memory must not be freed. Fixes Bug #8983.
+
 2000-04-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in, acconfig.h: Add configure test for garbage
index b646c1f..de5ee4d 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * glib.h: Changed comment for g_getenv to reflect, that the
+       returned memory must not be freed. Fixes Bug #8983.
+
 2000-04-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * configure.in, acconfig.h: Add configure test for garbage
diff --git a/glib.h b/glib.h
index 3c00e60..21ec71a 100644 (file)
--- a/glib.h
+++ b/glib.h
@@ -1685,8 +1685,10 @@ gchar*  g_path_skip_root (gchar       *file_name);
 /* strings are newly allocated with g_malloc() */
 gchar* g_dirname               (const gchar *file_name);
 gchar* g_get_current_dir       (void);
-gchar*  g_getenv               (const gchar *variable);
 
+/* return the environment string for the variable. The returned memory
+ * must not be freed. */
+gchar*  g_getenv               (const gchar *variable);
 
 /* we use a GLib function as a replacement for ATEXIT, so
  * the programmer is not required to check the return value
index 3c00e60..21ec71a 100644 (file)
@@ -1685,8 +1685,10 @@ gchar*  g_path_skip_root (gchar       *file_name);
 /* strings are newly allocated with g_malloc() */
 gchar* g_dirname               (const gchar *file_name);
 gchar* g_get_current_dir       (void);
-gchar*  g_getenv               (const gchar *variable);
 
+/* return the environment string for the variable. The returned memory
+ * must not be freed. */
+gchar*  g_getenv               (const gchar *variable);
 
 /* we use a GLib function as a replacement for ATEXIT, so
  * the programmer is not required to check the return value