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>
This commit is contained in:
parent
d76947b666
commit
9096dee405
@ -2550,7 +2550,7 @@ load_headless_backend(struct weston_compositor *c,
|
|||||||
const struct weston_windowed_output_api *api;
|
const struct weston_windowed_output_api *api;
|
||||||
struct weston_headless_backend_config config = {{ 0, }};
|
struct weston_headless_backend_config config = {{ 0, }};
|
||||||
struct weston_config_section *section;
|
struct weston_config_section *section;
|
||||||
bool no_outputs;
|
bool no_outputs = false;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
char *transform = NULL;
|
char *transform = NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user