From 7c467669cc1d4f83bd7c5ecfe440bfee8c2f4504 Mon Sep 17 00:00:00 2001 From: Sebastian Wilhelmi Date: Tue, 18 Apr 2000 13:00:35 +0000 Subject: [PATCH] Changed comment for g_getenv to reflect, that the returned memory must not 2000-04-18 Sebastian Wilhelmi * glib.h: Changed comment for g_getenv to reflect, that the returned memory must not be freed. Fixes Bug #8983. --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-12 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ glib.h | 4 +++- glib/glib.h | 4 +++- 10 files changed, 46 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b646c1f..de5ee4d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-04-18 Sebastian Wilhelmi + + * 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 * configure.in, acconfig.h: Add configure test for garbage diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index b646c1f..de5ee4d 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +2000-04-18 Sebastian Wilhelmi + + * 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 * configure.in, acconfig.h: Add configure test for garbage diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index b646c1f..de5ee4d 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2000-04-18 Sebastian Wilhelmi + + * 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 * configure.in, acconfig.h: Add configure test for garbage diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index b646c1f..de5ee4d 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2000-04-18 Sebastian Wilhelmi + + * 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 * configure.in, acconfig.h: Add configure test for garbage diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index b646c1f..de5ee4d 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2000-04-18 Sebastian Wilhelmi + + * 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 * configure.in, acconfig.h: Add configure test for garbage diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index b646c1f..de5ee4d 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2000-04-18 Sebastian Wilhelmi + + * 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 * configure.in, acconfig.h: Add configure test for garbage diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index b646c1f..de5ee4d 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2000-04-18 Sebastian Wilhelmi + + * 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 * configure.in, acconfig.h: Add configure test for garbage diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index b646c1f..de5ee4d 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2000-04-18 Sebastian Wilhelmi + + * 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 * configure.in, acconfig.h: Add configure test for garbage diff --git a/glib.h b/glib.h index 3c00e60..21ec71a 100644 --- 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 diff --git a/glib/glib.h b/glib/glib.h index 3c00e60..21ec71a 100644 --- a/glib/glib.h +++ b/glib/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 -- 2.7.4