hostent_test_getnameinfo_eq(..): initialize found_a_host to false

MFC after:	1 week
Reported by:	Coverity
CID:		1368943
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Enji Cooper 2017-05-28 07:04:50 +00:00
parent 49dd57f22d
commit dedafe6447

View File

@ -884,7 +884,7 @@ hostent_test_getnameinfo_eq(struct hostent *he, void *mdata __unused)
* An address might reverse resolve to hostname alias or the * An address might reverse resolve to hostname alias or the
* official hostname, e.g. moon.vub.ac.be. * official hostname, e.g. moon.vub.ac.be.
*/ */
bool found_a_match; bool found_a_match = false;
if (strcmp(result->h_name, buffer) == 0) { if (strcmp(result->h_name, buffer) == 0) {
found_a_match = true; found_a_match = true;