Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Nov 2006 17:34:40 +0000 (UTC)
From:      Yar Tikhiy <yar@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/systat netstat.c
Message-ID:  <200611271734.kARHYeXh027493@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
yar         2006-11-27 17:34:40 UTC

  FreeBSD src repository

  Modified files:
    usr.bin/systat       netstat.c 
  Log:
  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611271734.kARHYeXh027493>