opt: set all monitor pointer init value to NULL

This commit is contained in:
DreamMaoMao 2025-10-06 14:28:32 +08:00
parent e352e3a8fd
commit 457534bd41
5 changed files with 16 additions and 16 deletions

View file

@ -78,7 +78,7 @@ double find_animation_curve_at(double t, int type) {
double all_output_frame_duration_ms() {
int32_t refresh_total = 0;
Monitor *m;
Monitor *m = NULL;
wl_list_for_each(m, &mons, link) {
if (!m->wlr_output->enabled) {
continue;