OSDN Git Service

* passwe.cc (getpwnam_r): Initialize pw_comment field.
authorcgf <cgf>
Mon, 8 Sep 2003 22:03:20 +0000 (22:03 +0000)
committercgf <cgf>
Mon, 8 Sep 2003 22:03:20 +0000 (22:03 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/passwd.cc

index 1b847ce..7c56d7a 100644 (file)
@@ -1,5 +1,9 @@
 2003-09-08  Christopher Faylor  <cgf@redhat.com>
 
+       * passwe.cc (getpwnam_r): Initialize pw_comment field.
+
+2003-09-08  Christopher Faylor  <cgf@redhat.com>
+
        * passwd.cc (getpwuid_r32): Initialize pw_comment field.
 
 2003-09-08  Christopher Faylor  <cgf@redhat.com>
index c50766b..dea4a87 100644 (file)
@@ -241,6 +241,7 @@ getpwnam_r (const char *nam, struct passwd *pwd, char *buffer, size_t bufsize, s
   pwd->pw_dir = pwd->pw_name + strlen (temppw->pw_name) + 1;
   pwd->pw_shell = pwd->pw_dir + strlen (temppw->pw_dir) + 1;
   pwd->pw_gecos = pwd->pw_shell + strlen (temppw->pw_shell) + 1;
+  pwd->pw_comment = NULL;
   pwd->pw_passwd = pwd->pw_gecos + strlen (temppw->pw_gecos) + 1;
   strcpy (pwd->pw_name, temppw->pw_name);
   strcpy (pwd->pw_dir, temppw->pw_dir);