opt: fix potential issues caused by uninitialization

This commit is contained in:
DreamMaoMao 2026-03-06 13:25:24 +08:00
parent 57e02d6217
commit 81fcf208a4
2 changed files with 20 additions and 3 deletions

View file

@ -3949,6 +3949,9 @@ void init_client_properties(Client *c) {
c->master_mfact_per = 0.0f;
c->master_inner_per = 0.0f;
c->stack_inner_per = 0.0f;
c->old_stack_inner_per = 0.0f;
c->old_master_inner_per = 0.0f;
c->old_master_mfact_per = 0.0f;
c->isterm = 0;
c->allow_csd = 0;
c->force_maximize = 0;