From owner-svn-src-all@freebsd.org Sun Oct 4 01:56:11 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BA2E0A0FC16; Sun, 4 Oct 2015 01:56:11 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AB0D31CEC; Sun, 4 Oct 2015 01:56:11 +0000 (UTC) (envelope-from sbruno@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t941uBQq033199; Sun, 4 Oct 2015 01:56:11 GMT (envelope-from sbruno@FreeBSD.org) Received: (from sbruno@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t941uBbX033198; Sun, 4 Oct 2015 01:56:11 GMT (envelope-from sbruno@FreeBSD.org) Message-Id: <201510040156.t941uBbX033198@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sbruno set sender to sbruno@FreeBSD.org using -f From: Sean Bruno Date: Sun, 4 Oct 2015 01:56:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r288645 - head/bin/cat X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 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: Sun, 04 Oct 2015 01:56:11 -0000 Author: sbruno Date: Sun Oct 4 01:56:11 2015 New Revision: 288645 URL: https://svnweb.freebsd.org/changeset/base/288645 Log: Initialize fd to -1 so that gcc doesn't emit an unitialized warning. Modified: head/bin/cat/cat.c Modified: head/bin/cat/cat.c ============================================================================== --- head/bin/cat/cat.c Sun Oct 4 00:40:12 2015 (r288644) +++ head/bin/cat/cat.c Sun Oct 4 01:56:11 2015 (r288645) @@ -306,7 +306,8 @@ udom_open(const char *path, int flags) { struct addrinfo hints, *res, *res0; char rpath[PATH_MAX]; - int fd, error; + int fd = -1; + int error; /* * Construct the unix domain socket address and attempt to connect.