summaryrefslogtreecommitdiff
path: root/compositor
diff options
context:
space:
mode:
authorGuillaume Champagne <champagne.guillaume.c@gmail.com>2020-02-02 19:45:36 -0500
committerPekka Paalanen <pq@iki.fi>2020-02-04 13:30:19 +0000
commit9096dee405add553dda6a4254aa5faa7651e7365 (patch)
treeb9a9575309f5152fbe0cde5cfdb98da8bf0fcdef /compositor
parentd76947b6668e0fabe0a4551ac6c2c978f93768cd (diff)
headless: fix uninitialized variable
`no_outputs` is declared on the stack and left uninitialized if no weston option changing its value is provided. Signed-off-by: Guillaume Champagne <champagne.guillaume.c@gmail.com>
Diffstat (limited to 'compositor')
-rw-r--r--compositor/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compositor/main.c b/compositor/main.c
index 97c3c45c..2e1a9356 100644
--- a/compositor/main.c
+++ b/compositor/main.c
@@ -2550,7 +2550,7 @@ load_headless_backend(struct weston_compositor *c,
const struct weston_windowed_output_api *api;
struct weston_headless_backend_config config = {{ 0, }};
struct weston_config_section *section;
- bool no_outputs;
+ bool no_outputs = false;
int ret = 0;
char *transform = NULL;