diff --git a/glib/gutils.c b/glib/gutils.c index 36ab275c8..74dac8abe 100644 --- a/glib/gutils.c +++ b/glib/gutils.c @@ -453,9 +453,7 @@ g_get_any_init (void) error = getpwuid_r (getuid (), &pwd, buffer, bufsize, &pw); if (!error) goto pw_out; - /* error = errno; According to the Solaris man page, - this is not necessary. */ - + error = errno; # else /* !HAVE_GETPWUID_R_POSIX */ pw = getpwuid_r (getuid (), &pwd, buffer, bufsize); if (pw == NULL) diff --git a/gutils.c b/gutils.c index 36ab275c8..74dac8abe 100644 --- a/gutils.c +++ b/gutils.c @@ -453,9 +453,7 @@ g_get_any_init (void) error = getpwuid_r (getuid (), &pwd, buffer, bufsize, &pw); if (!error) goto pw_out; - /* error = errno; According to the Solaris man page, - this is not necessary. */ - + error = errno; # else /* !HAVE_GETPWUID_R_POSIX */ pw = getpwuid_r (getuid (), &pwd, buffer, bufsize); if (pw == NULL)