From 9f1978657ad4bea2c104872b09e0dc9323948527 Mon Sep 17 00:00:00 2001 From: "bhutani.92" Date: Mon, 28 Nov 2016 11:57:32 +0530 Subject: [PATCH] Fixed TSAM-10356 Robustness Error Change-Id: I6ea967a413dfd2518e09e61e23fb76d430bc1853 Signed-off-by: bhutani.92 --- src/setting/src/ms-key-ctrl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/setting/src/ms-key-ctrl.c b/src/setting/src/ms-key-ctrl.c index 7632f4c..9f21f9c 100755 --- a/src/setting/src/ms-key-ctrl.c +++ b/src/setting/src/ms-key-ctrl.c @@ -104,6 +104,10 @@ ms_key_get_playlist_str(char **b_str) MP_CHECK_VAL(b_str, -1); int ret = 0; ret = preference_get_string(MP_PREFKEY_PLAYLIST_VAL_STR, b_str); + if (ret != PREFERENCE_ERROR_NONE) { + ERROR_TRACE("Error in preference_get_string() [%d]", ret); + return -1; + } if (*b_str == NULL) { ERROR_TRACE("Fail to get %d ", ret); return -1; -- 2.7.4