Date: Sun, 28 May 2017 07:04:51 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r319051 - head/lib/libc/tests/nss Message-ID: <201705280704.v4S74pS7055022@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705280704.v4S74pS7055022>