Change-Id: I23dd4ae66489799b1eaf5031fafff4cc1559fecd
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
{
FILE *fp = NULL;
char label_path[1024] = "/proc/self/attr/current";
- char smack_label[1024] = {'\0', };
+ char smack_label[1024] = {0};
if (!p_cynara) {
return false;
fp = fopen(label_path, "r");
if (fp != NULL) {
- if (fread(smack_label, 1, sizeof(smack_label), fp) <= 0);
+ if (fread(smack_label, 1, sizeof(smack_label), fp) <= 0) {
+ LOGD("[check_privilege] fail to fread");
+ }
fclose(fp);
}