Ticket #15221: patch2-gutils.c.diff
File patch2-gutils.c.diff, 679 bytes (added by dwalthour@…, 17 years ago) |
---|
-
glib/gutils.c
old new 1124 1124 #endif /* G_OS_WIN32 */ 1125 1125 } 1126 1126 1127 /* _g_getenv_nomalloc1127 /* g_getenv_nomalloc 1128 1128 * this function does a getenv() without doing any kind of allocation 1129 1129 * through glib. it's suitable for chars <= 127 only (both, for the 1130 1130 * variable name and the contents) and for contents < 1024 chars in 1131 1131 * length. also, it aliases "" to a NULL return value. 1132 1132 **/ 1133 1133 const gchar* 1134 _g_getenv_nomalloc (const gchar *variable,1134 g_getenv_nomalloc (const gchar *variable, 1135 1135 gchar buffer[1024]) 1136 1136 { 1137 1137 const gchar *retval = getenv (variable);