diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-08-18 12:08:19 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-08-18 12:08:28 -0400 |
commit | 784cf656359ed456ec853ae4a322851d4fca6177 (patch) | |
tree | 7889b478c6c59dcbf701abfd2e6a14c982bcaefe /backend | |
parent | e5fd858394831388ad0677960387ed4a5331df47 (diff) |
fix uninitialized warning
`index` might be uninitialized. Warning can be produced with gcc and `-01` flag.
Diffstat (limited to 'backend')
-rw-r--r-- | backend/drm/drm.c | 2 |
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) { |