pma: initialize state->which to 0 in bt_state_open

This commit is contained in:
barter-simsum 2023-12-15 18:41:50 -05:00
parent 0ec984663c
commit 9a8229837d

View File

@ -2577,7 +2577,6 @@ bt_state_new(BT_state **state)
BT_state *s = calloc(1, sizeof *s);
s->data_fd = -1;
s->fixaddr = BT_MAPADDR;
s->which = -1;
*state = s;
return BT_SUCC;
}