opt: set all monitor pointer init value to NULL

This commit is contained in:
DreamMaoMao
2025-10-06 14:28:32 +08:00
parent efa33eb0eb
commit 0622ab463b
5 changed files with 18 additions and 18 deletions

View File

@@ -207,7 +207,7 @@ void dwl_ipc_output_set_client_tags(struct wl_client *client,
unsigned int and_tags,
unsigned int xor_tags) {
DwlIpcOutput *ipc_output;
Monitor *monitor;
Monitor *monitor = NULL;
Client *selected_client = NULL;
unsigned int newtags = 0;
@@ -235,7 +235,7 @@ void dwl_ipc_output_set_layout(struct wl_client *client,
struct wl_resource *resource,
unsigned int index) {
DwlIpcOutput *ipc_output;
Monitor *monitor;
Monitor *monitor = NULL;
ipc_output = wl_resource_get_user_data(resource);
if (!ipc_output)
@@ -254,7 +254,7 @@ void dwl_ipc_output_set_tags(struct wl_client *client,
struct wl_resource *resource, unsigned int tagmask,
unsigned int toggle_tagset) {
DwlIpcOutput *ipc_output;
Monitor *monitor;
Monitor *monitor = NULL;
unsigned int newtags = tagmask & TAGMASK;
ipc_output = wl_resource_get_user_data(resource);