summaryrefslogtreecommitdiffstats
path: root/gettext-tools/src/msginit.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-03-17 11:21:39 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:14:43 +0200
commitb3885e33b05c14c50cb3d7ef10f12b34d3e35fc1 (patch)
tree1ddd35c3d238b5059d7730e522002a5b9ae108cb /gettext-tools/src/msginit.c
parent21a1ce11caafae6ff3ba5e427301ef3c9dc9aa94 (diff)
downloadexternal_gettext-b3885e33b05c14c50cb3d7ef10f12b34d3e35fc1.zip
external_gettext-b3885e33b05c14c50cb3d7ef10f12b34d3e35fc1.tar.gz
external_gettext-b3885e33b05c14c50cb3d7ef10f12b34d3e35fc1.tar.bz2
Avoid warnings.
Diffstat (limited to 'gettext-tools/src/msginit.c')
-rw-r--r--gettext-tools/src/msginit.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gettext-tools/src/msginit.c b/gettext-tools/src/msginit.c
index 248a449..141e515 100644
--- a/gettext-tools/src/msginit.c
+++ b/gettext-tools/src/msginit.c
@@ -1003,14 +1003,15 @@ static const char *
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, ',');