aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/drm.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/drm/drm.c')
-rw-r--r--backend/drm/drm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index e65ca696..6e831e41 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -405,7 +405,7 @@ static void realloc_crtcs(struct wlr_drm_backend *backend,
memset(possible_crtc, 0, sizeof(possible_crtc));
- size_t index;
+ size_t index = 0;
for (size_t i = 0; i < backend->outputs->length; ++i) {
struct wlr_drm_output *o = backend->outputs->items[i];
if (o == output) {