opt: Initialize all Client Pointers to NULL

This commit is contained in:
DreamMaoMao
2025-10-06 14:11:36 +08:00
parent a765641f4c
commit 1eb5904aa6
8 changed files with 51 additions and 52 deletions

View File

@@ -28,7 +28,7 @@ bool is_scroller_layout(Monitor *m) {
}
unsigned int get_tag_status(unsigned int tag, Monitor *m) {
Client *c;
Client *c = NULL;
unsigned int status = 0;
wl_list_for_each(c, &clients, link) {
if (c->mon == m && c->tags & 1 << (tag - 1) & TAGMASK) {