mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 08:48:00 +02:00
ivi-shell: Fix wrong condition to check return value of controller_module_init
Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
This commit is contained in:
parent
f0aaa41748
commit
9d86021cac
1 changed files with 2 additions and 2 deletions
|
|
@ -2954,9 +2954,9 @@ load_controller_modules(struct weston_compositor *compositor, const char *module
|
|||
|
||||
controller_module_init = weston_load_module(buffer, "controller_module_init");
|
||||
if (controller_module_init)
|
||||
if(!controller_module_init(compositor, argc, argv,
|
||||
if(controller_module_init(compositor, argc, argv,
|
||||
&ivi_controller_interface,
|
||||
sizeof(struct ivi_controller_interface))) {
|
||||
sizeof(struct ivi_controller_interface)) != 0) {
|
||||
weston_log("ivi-shell: Initialization of controller module fails");
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue