fix ptr bug in setting-profile for 'Silent mode' 40/79240/1 accepted/tizen/mobile/20160710.053839 submit/tizen/20160709.101840
authorMyoungJune Park <mj2004.park@samsung.com>
Sat, 9 Jul 2016 10:15:55 +0000 (19:15 +0900)
committerMyoungJune Park <mj2004.park@samsung.com>
Sat, 9 Jul 2016 10:17:00 +0000 (19:17 +0900)
Change-Id: I52307e433595e214b3c64d505e4cd9885d5c0aea
Signed-off-by: MyoungJune Park <mj2004.park@samsung.com>
setting-profile/src/setting-profile-common.c

index 23c063fa289f295c6a3abaac2e9fa217dd970e7a..61a66b13836c689b51b990b795eeeefe35c064f7 100644 (file)
@@ -290,7 +290,10 @@ static void __enable_sound_menu(void *data)
 
        /*2.Enable "Notification", via Sound Manager */
        item_to_update = ad->data_noti_volume;
-       if (safeStrCmp(ad->data_msg_alert_tone->sub_desc, "Silent")) {
+
+       // @todo make sure data_msg_alert_tone is correct for 'Silent' set.
+       //if (item_to_update && safeStrCmp(item_to_update->sub_desc, "Silent")) {
+       if (ad->data_msg_alert_tone && safeStrCmp(ad->data_msg_alert_tone->sub_desc, "Silent")) {
                //Enable
                if (item_to_update
                                && item_to_update->item