+2007-03-10 Bruno Haible <bruno@clisp.org>
+
+ * msginit.c (get_user_fullname): Reduce scope of local variables.
+
2007-03-04 Bruno Haible <bruno@clisp.org>
Moved --enable-relocatable infrastructure to gnulib.
get_user_fullname ()
{
struct passwd *pwd;
- const char *fullname;
- const char *fullname_end;
- char *result;
pwd = get_user_pwd ();
#if HAVE_PWD_H
if (pwd != NULL)
{
+ const char *fullname;
+ const char *fullname_end;
+ char *result;
+
/* Return the pw_gecos field, upto the first comma (if any). */
fullname = pwd->pw_gecos;
fullname_end = strchr (fullname, ',');