svn commit: r288645 - head/bin/cat

Sean Bruno sbruno at FreeBSD.org
Sun Oct 4 01:56:11 UTC 2015


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.


More information about the svn-src-all mailing list