diff options
author | Sebastian Wilhelmi <wilhelmi@ira.uka.de> | 2000-04-18 13:00:35 +0000 |
---|---|---|
committer | Sebastian Wilhelmi <wilhelmi@src.gnome.org> | 2000-04-18 13:00:35 +0000 |
commit | 7c467669cc1d4f83bd7c5ecfe440bfee8c2f4504 (patch) | |
tree | 8d2510b9f23fb382482c3b38fa857426f3d91181 /glib | |
parent | 8c90d7766b1708a8bcb3cb96988b6b7fc92c2e59 (diff) | |
download | glib-7c467669cc1d4f83bd7c5ecfe440bfee8c2f4504.tar.gz |
Changed comment for g_getenv to reflect, that the returned memory must not
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.
Diffstat (limited to 'glib')
-rw-r--r-- | glib/glib.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/glib/glib.h b/glib/glib.h index 3c00e60fb..21ec71ab3 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 |