From owner-cvs-src@FreeBSD.ORG Mon Nov 27 17:52:56 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B92B916A40F; Mon, 27 Nov 2006 17:52:56 +0000 (UTC) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 085D644333; Mon, 27 Nov 2006 17:33:44 +0000 (GMT) (envelope-from yar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kARHYeTV027494; Mon, 27 Nov 2006 17:34:40 GMT (envelope-from yar@repoman.freebsd.org) Received: (from yar@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kARHYeXh027493; Mon, 27 Nov 2006 17:34:40 GMT (envelope-from yar) Message-Id: <200611271734.kARHYeXh027493@repoman.freebsd.org> From: Yar Tikhiy Date: Mon, 27 Nov 2006 17:34:40 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/systat netstat.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2006 17:52:56 -0000 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