From dedafe6447cc1bee6f6dbe04ce4fe84af1c21780 Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Sun, 28 May 2017 07:04:50 +0000 Subject: [PATCH] hostent_test_getnameinfo_eq(..): initialize found_a_host to false MFC after: 1 week Reported by: Coverity CID: 1368943 Sponsored by: Dell EMC Isilon --- lib/libc/tests/nss/gethostby_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/tests/nss/gethostby_test.c b/lib/libc/tests/nss/gethostby_test.c index 918d0544645..214d29a05a2 100644 --- a/lib/libc/tests/nss/gethostby_test.c +++ b/lib/libc/tests/nss/gethostby_test.c @@ -884,7 +884,7 @@ hostent_test_getnameinfo_eq(struct hostent *he, void *mdata __unused) * 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;