[PATCH 5/6] Kill gcc uninitialized warning
Mathieu OTHACEHE <[email protected]> Fri, 25 Nov 2016 15:35:22 +0100
| Newsgroups | gmane.comp.window-managers.ratpoison.devel |
|---|---|
| Message-ID | <[email protected]> |
It is useless to initialize screen_count, but it prevents a gcc warning.
---
src/screen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/screen.c b/src/screen.c
index 240b876..fe01a35 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -233,7 +233,7 @@ void
init_screens (void)
{
int i;
- int screen_count;
+ int screen_count = 0;
int *rr_outputs = NULL;
rp_screen *screen;
--
2.10.0