]> sourceware.org Git - glibc.git/commitdiff
(logout): Initialize DATA to a state that will make setutent_r happy.
authorMiles Bader <miles@gnu.org>
Mon, 15 Jul 1996 16:25:44 +0000 (16:25 +0000)
committerMiles Bader <miles@gnu.org>
Mon, 15 Jul 1996 16:25:44 +0000 (16:25 +0000)
login/logout.c

index bf45451eef2eee5bdc3a97f64a0042e900c4dddb..8575512e0ed6a9ab4dfe678f9eced70a6aca0d42 100644 (file)
@@ -25,7 +25,7 @@ Boston, MA 02111-1307, USA.  */
 int
 logout (const char *line)
 {
-  struct utmp_data data;
+  struct utmp_data data = { ut_fd: -1 };
   struct utmp tmp;
   struct utmp *ut;
   int result = 0;
This page took 0.047703 seconds and 5 git commands to generate.