[1133426]Resolved coverity issue 29/228629/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.122952 accepted/tizen/6.0/unified/hotfix/20201103.052552 accepted/tizen/unified/20200402.155350 submit/tizen/20200324.081421 submit/tizen/20200324.114254 submit/tizen/20200328.144632 submit/tizen_6.0/20201029.205101 submit/tizen_6.0_hotfix/20201102.192501 submit/tizen_6.0_hotfix/20201103.114801 tizen_6.0.m2_release
authormohitkr1 <mohit.kr1@samsung.com>
Tue, 24 Mar 2020 08:01:56 +0000 (13:31 +0530)
committermohitkr1 <mohit.kr1@samsung.com>
Tue, 24 Mar 2020 08:01:56 +0000 (13:31 +0530)
Checker for return value in volume_view_slider_value_set

Change-Id: If36636ca518e1ffb2b9e0af769302ec50e8fd2ad
Signed-off-by: mohitkr1 <mohit.kr1@samsung.com>
src/sound.c

index ec9964d..38d2924 100755 (executable)
@@ -234,7 +234,9 @@ void volume_sound_change_set(int val)
                if (sound_type != SOUND_TYPE_MEDIA)
                        volume_sound_vconf_status_set(TYPE_VCONF_SOUND_STATUS, 0);
 
-               volume_view_slider_value_set(0);
+               if (VOLUME_ERROR_OK != volume_view_slider_value_set(0))
+                       _E("Failed to set slider value");
+
                volume_sound_level_set(sound_type, 0);
 
                if (sound_type == SOUND_TYPE_RINGTONE) {