From 994cdfd6bb1d38e1c98291e80e932ff0f720ed05 Mon Sep 17 00:00:00 2001 From: Taeyoung Kim Date: Sat, 20 Jun 2015 17:57:19 +0900 Subject: feedback: fix errors for initialization and dead code Change-Id: I22b9407d5f3e1232fea154027c02c1e282f8fb29 Signed-off-by: Taeyoung Kim --- src/sound.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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); -- cgit v1.2.3