Add missing log and pointer reset code
[platform/core/uifw/stt.git] / server / stte.c
index 59caa14..c2619c8 100755 (executable)
@@ -90,8 +90,10 @@ static bool is_privilege_allowed(const char* uid, const char * privilege)
        fp = fopen(label_path, "r");
        if (fp != NULL) {
                if (0 >= fread(smack_label, 1, sizeof(smack_label), fp))
+                       SLOG(LOG_ERROR, TAG_STTD, "[ERROR] fail to fread"); //LCOV_EXCL_LINE
 
                fclose(fp);
+               fp = NULL;
        }
 
        pid_t pid = getpid();