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. _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"