]> git.ipfire.org Git - thirdparty/bind9.git/commit
mdig: fix implicit bool to int cast
authorColin Vidal <colin@isc.org>
Tue, 14 Oct 2025 11:31:44 +0000 (13:31 +0200)
committerColin Vidal <colin@isc.org>
Wed, 12 Nov 2025 10:31:28 +0000 (11:31 +0100)
commit25f303f0466ffc821b87ca9aced5935dcaa0be21
tree9908619801f6f180bc5d3ebb4088aaf93ae67cd4
parent754595ea2d9aee4e789d6fc0f295f64f0e2312d6
mdig: fix implicit bool to int cast

The `display_rrcomments` is a tri-state (-1, 0, 1) which is (in some
cases) initialized with `state`, a boolean, through an implicit cast.
This was spot by Coccinelle. Remove the implcit cast by explicitly
assigning 0 or 1 to `display_rrcomments` based on `state` value.
bin/tools/mdig.c