sound: Add proper error return code 91/314191/2 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20240716.112419 accepted/tizen/unified/20240716.140301 accepted/tizen/unified/x/20240717.012446
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 8 Jul 2024 08:23:36 +0000 (17:23 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Fri, 12 Jul 2024 08:01:19 +0000 (17:01 +0900)
Initialization code should returns proper error code.
However, there was no proper error return.
By adding error return code, g_sound_theme_list can be initialized
from sound_thememan_exit() properly.

Change-Id: I1a27c0d89f162570d4a70ee3b15c72ba9e1a105f
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/sound-theme-manager.c

index 01b2d5a..cc92d66 100644 (file)
@@ -183,6 +183,9 @@ static void cleanup_sound_theme_element(gpointer data)
 int sound_thememan_init(void)
 {
        g_sound_theme_list = NULL;
+       if (g_sound_theme_list)
+               return -EAGAIN;
+
        return 0;
 }