Project

General

Profile

Feature #3898 » uptime.c.patch

Ken Mays, 2013-08-08 03:00 PM

View differences:

coreutils-8.21/src/uptime.c 2013-07-19 11:51:45.823451400 -0400
176 176
uptime (const char *filename, int options)
177 177
{
178 178
  size_t n_users;
179
  STRUCT_UTMP *utmp_buf;
179
  STRUCT_UTMP *utmp_buf = NULL;
180 180

  
181 181
#if HAVE_UTMPX_H || HAVE_UTMP_H
182 182
  if (read_utmp (filename, &n_users, &utmp_buf, options) != 0)
......
184 184
#endif
185 185

  
186 186
  print_uptime (n_users, utmp_buf);
187

  
188
  IF_LINT (free (utmp_buf));
187 189
}
188 190

  
189 191
void
(4-4/4)