mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-23 02:28:55 -04:00
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.
This commit is contained in:
parent
754595ea2d
commit
25f303f046
1 changed files with 1 additions and 1 deletions
|
|
@ -1594,7 +1594,7 @@ plus_option(char *option, struct query *query, bool global) {
|
|||
FULLCHECK("yaml");
|
||||
yaml = state;
|
||||
if (state) {
|
||||
display_rrcomments = state;
|
||||
display_rrcomments = 1;
|
||||
}
|
||||
break;
|
||||
case 'z': /* zflag */
|
||||
|
|
|
|||
Loading…
Reference in a new issue