projects
/
platform
/
core
/
uifw
/
stt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add missing log and pointer reset code
[platform/core/uifw/stt.git]
/
server
/
stte.c
diff --git
a/server/stte.c
b/server/stte.c
index
59caa14
..
c2619c8
100755
(executable)
--- a/
server/stte.c
+++ b/
server/stte.c
@@
-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();