diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-08-18 12:14:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-18 12:14:42 -0400 |
commit | 995ebe3bb02388042073f2e8e0e3fa316ded375d (patch) | |
tree | 7889b478c6c59dcbf701abfd2e6a14c982bcaefe /backend/drm | |
parent | e5fd858394831388ad0677960387ed4a5331df47 (diff) | |
parent | 784cf656359ed456ec853ae4a322851d4fca6177 (diff) |
Merge pull request #105 from acrisci/bug/uninitialized-int
fix uninitialized warning
Diffstat (limited to 'backend/drm')
-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) { |