Ticket #15221: patch2-gutils.c.diff

File patch2-gutils.c.diff, 679 bytes (added by dwalthour@…, 16 years ago)
  • glib/gutils.c

    old new  
    11241124#endif /* G_OS_WIN32 */
    11251125}
    11261126
    1127 /* _g_getenv_nomalloc
     1127/* g_getenv_nomalloc
    11281128 * this function does a getenv() without doing any kind of allocation
    11291129 * through glib. it's suitable for chars <= 127 only (both, for the
    11301130 * variable name and the contents) and for contents < 1024 chars in
    11311131 * length. also, it aliases "" to a NULL return value.
    11321132 **/
    11331133const gchar*
    1134 _g_getenv_nomalloc (const gchar *variable,
     1134g_getenv_nomalloc (const gchar *variable,
    11351135                    gchar        buffer[1024])
    11361136{
    11371137  const gchar *retval = getenv (variable);