mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-24 21:05:40 +02:00
module/river: fix “use of uninitialized variable” warning
There were “goto err” statements before “unlock_at_exit” had been initialized.
This commit is contained in:
parent
4143099e94
commit
8d5deda4e4
1 changed files with 2 additions and 1 deletions
|
@ -637,6 +637,7 @@ run(struct module *mod)
|
||||||
int ret = 1;
|
int ret = 1;
|
||||||
struct wl_display *display = NULL;
|
struct wl_display *display = NULL;
|
||||||
struct wl_registry *registry = NULL;
|
struct wl_registry *registry = NULL;
|
||||||
|
bool unlock_at_exit = false;
|
||||||
|
|
||||||
if ((display = wl_display_connect(NULL)) == NULL) {
|
if ((display = wl_display_connect(NULL)) == NULL) {
|
||||||
LOG_ERR("no Wayland compositor running?");
|
LOG_ERR("no Wayland compositor running?");
|
||||||
|
@ -659,8 +660,8 @@ run(struct module *mod)
|
||||||
|
|
||||||
wl_display_roundtrip(display);
|
wl_display_roundtrip(display);
|
||||||
|
|
||||||
bool unlock_at_exit = true;
|
|
||||||
mtx_lock(&mod->lock);
|
mtx_lock(&mod->lock);
|
||||||
|
unlock_at_exit = true;
|
||||||
|
|
||||||
m->is_starting_up = false;
|
m->is_starting_up = false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue