Unline glib.h tells, g_getenv() doesn't return newly allocated string

after all..


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@239 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-05-25 13:54:43 +00:00 committed by cras
commit 2440a5b0b6
2 changed files with 2 additions and 9 deletions

View file

@ -119,10 +119,8 @@ static char *get_long_variable_value(const char *key, void *server, void *item,
/* environment variable? */
ret = g_getenv(key);
if (ret != NULL) {
*free_ret = TRUE;
if (ret != NULL)
return ret;
}
return NULL;
}