svn commit: r319051 - head/lib/libc/tests/nss

Ngie Cooper ngie at FreeBSD.org
Sun May 28 07:04:52 UTC 2017


Author: ngie
Date: Sun May 28 07:04:50 2017
New Revision: 319051
URL: https://svnweb.freebsd.org/changeset/base/319051

Log:
  hostent_test_getnameinfo_eq(..): initialize found_a_host to false
  
  MFC after:	1 week
  Reported by:	Coverity
  CID:		1368943
  Sponsored by:	Dell EMC Isilon

Modified:
  head/lib/libc/tests/nss/gethostby_test.c

Modified: head/lib/libc/tests/nss/gethostby_test.c
==============================================================================
--- head/lib/libc/tests/nss/gethostby_test.c	Sun May 28 06:31:52 2017	(r319050)
+++ head/lib/libc/tests/nss/gethostby_test.c	Sun May 28 07:04:50 2017	(r319051)
@@ -884,7 +884,7 @@ hostent_test_getnameinfo_eq(struct hoste
 		 * An address might reverse resolve to hostname alias or the
 		 * official hostname, e.g. moon.vub.ac.be.
 		 */
-		bool found_a_match;
+		bool found_a_match = false;
 
 		if (strcmp(result->h_name, buffer) == 0) {
 			found_a_match = true;


More information about the svn-src-all mailing list