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:
Colin Vidal 2025-10-14 13:31:44 +02:00
parent 754595ea2d
commit 25f303f046

View file

@ -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 */