From owner-svn-src-all@FreeBSD.ORG Fri Jun 11 17:02:58 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 215B6106566C; Fri, 11 Jun 2010 17:02:58 +0000 (UTC) (envelope-from uqs@FreeBSD.org) Received: from svn.freebsd.org (unknown [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 112448FC18; Fri, 11 Jun 2010 17:02:58 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o5BH2vvx035617; Fri, 11 Jun 2010 17:02:57 GMT (envelope-from uqs@svn.freebsd.org) Received: (from uqs@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o5BH2vUE035614; Fri, 11 Jun 2010 17:02:57 GMT (envelope-from uqs@svn.freebsd.org) Message-Id: <201006111702.o5BH2vUE035614@svn.freebsd.org> From: Ulrich Spoerlein Date: Fri, 11 Jun 2010 17:02:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r209051 - in head/sbin: camcontrol gvinum X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2010 17:02:58 -0000 Author: uqs Date: Fri Jun 11 17:02:57 2010 New Revision: 209051 URL: http://svn.freebsd.org/changeset/base/209051 Log: Initialize variables before usage. Found by: clang static analyzer Found by: Coverity Prevent[tm] (CID 7736, 7760) Modified: head/sbin/camcontrol/modeedit.c head/sbin/gvinum/gvinum.c Modified: head/sbin/camcontrol/modeedit.c ============================================================================== --- head/sbin/camcontrol/modeedit.c Fri Jun 11 15:56:18 2010 (r209050) +++ head/sbin/camcontrol/modeedit.c Fri Jun 11 17:02:57 2010 (r209051) @@ -394,6 +394,7 @@ load_format(const char *pagedb_path, int SLIST_INIT(&namelist); + c = '\0'; depth = 0; lineno = 0; found = 0; Modified: head/sbin/gvinum/gvinum.c ============================================================================== --- head/sbin/gvinum/gvinum.c Fri Jun 11 15:56:18 2010 (r209050) +++ head/sbin/gvinum/gvinum.c Fri Jun 11 17:02:57 2010 (r209051) @@ -644,6 +644,7 @@ gvinum_detach(int argc, char **argv) struct gctl_req *req; int flags, i; + flags = 0; optreset = 1; optind = 1; while ((i = getopt(argc, argv, "f")) != -1) {