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:
parent
49dd57f22d
commit
dedafe6447
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user