tizen_launch_splash_launch_v2 does not allow a null argument. 01/306801/2
authorSooChan Lim <sc1.lim@samsung.com>
Tue, 27 Feb 2024 23:28:22 +0000 (08:28 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Tue, 27 Feb 2024 23:49:48 +0000 (23:49 +0000)
Wayland protocol does not allow the null argument of which type
is arrary anymore.

Change-Id: I8cfed0a4b32523771fba52fb1f141d7c52f4b692

src/modules/splash-screen/src/splash-screen.c

index a295af3..2046499 100644 (file)
@@ -451,7 +451,8 @@ static void __splash_screen_send_image(splash_image_h si)
        __set_options(&options, si->appid);
 
        wl_array_init(&extra_config);
-       __set_extra_config(&extra_config, si->appid);
+       if (si->custom_effect)
+               __set_extra_config(&extra_config, si->appid);
 
        _D("src(%s), type(%d), color-depth(%d), rotation(%d), " \
                        "indicator(%d), effect_type(%s)",
@@ -460,7 +461,7 @@ static void __splash_screen_send_image(splash_image_h si)
        tizen_launch_splash_launch_v2(si->image, si->src, si->type,
                        si->color_depth, si->rotation, si->indicator,
                        si->effect_type, si->theme_type, &options,
-                       si->custom_effect ? &extra_config : NULL);
+                       &extra_config);
        wl_display_flush(display);
 
        wl_array_release(&extra_config);