commit 55d5d9c

uint  ·  2026-06-05 17:58:56 +0000 UTC
parent a067880
Initialise Maus cleared (malloc->calloc)
1 files changed,  +1, -1
+1, -1
1@@ -134,7 +134,7 @@ Maus* maus_init(const char* title, int x, int y, int width, int height)
2 		return NULL;
3 	}
4 
5-	Maus* win = malloc(sizeof(Maus));
6+	Maus* win = calloc(1, sizeof(Maus));
7 	win->display = d;
8 	win->root = DefaultRootWindow(d);
9 	win->win = None;