cvs commit: src/usr.bin/systat netstat.c

Yar Tikhiy yar at
Mon Nov 27 09:52:56 PST 2006

yar         2006-11-27 17:34:40 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/systat       netstat.c 
  The logic of fetchnetstat_sysctl() isn't too complex: if idx is 0,
  we set and use xtp; if idx is 1, we set and use xip; the other cases
  are impossible.  However, GCC cannot see that xip and xtp are always
  initialized before use because they are initialized and used in
  different if/else blocks.  So setting them to NULL at the very
  beginning won't hurt.
  Revision  Changes    Path
  1.28      +2 -2      src/usr.bin/systat/netstat.c

More information about the cvs-src mailing list