From: Taeyoung Kim Date: Sat, 20 Jun 2015 08:57:19 +0000 (+0900) Subject: feedback: fix errors for initialization and dead code X-Git-Tag: submit/tizen/20151210.060239~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=994cdfd6bb1d38e1c98291e80e932ff0f720ed05;p=platform%2Fcore%2Fsystem%2Flibsvi.git feedback: fix errors for initialization and dead code Change-Id: I22b9407d5f3e1232fea154027c02c1e282f8fb29 Signed-off-by: Taeyoung Kim --- diff --git a/src/sound.c b/src/sound.c index b6f7fe4..1a90b7f 100644 --- a/src/sound.c +++ b/src/sound.c @@ -101,6 +101,11 @@ static void sound_init(void) if (vconf_get_bool(VCONFKEY_SETAPPL_BUTTON_SOUNDS_BOOL, &keytone_sndstatus) < 0) _W("VCONFKEY_SETAPPL_BUTTON_SOUNDS_BOOL ==> FAIL!!"); + if (vconf_get_bool(VCONFKEY_SETAPPL_SOUND_STATUS_BOOL, &sndstatus) < 0) { + _D("fail to get sound status, will work as turning off"); + sndstatus = 0; + } + /* add watch for status value */ vconf_notify_key_changed(VCONFKEY_SETAPPL_TOUCH_SOUNDS_BOOL, feedback_touch_sndstatus_cb, NULL); vconf_notify_key_changed(VCONFKEY_SETAPPL_BUTTON_SOUNDS_BOOL, feedback_keytone_sndstatus_cb, NULL);