projects
/
framework
/
system
/
dlog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c37a26b
)
bug fix : prevent issue CID 13716
tizen_2.2
2.2.1_release
submit/tizen_2.2/20131107.055953
author
Jae-young Hwang
<j-zero.hwang@samsung.com>
Tue, 22 Oct 2013 13:25:41 +0000
(22:25 +0900)
committer
Jae-young Hwang
<j-zero.hwang@samsung.com>
Tue, 22 Oct 2013 13:25:41 +0000
(22:25 +0900)
solve the dead error condition
Change-Id: I025328bc0cace1fe20b449cbda6e8f5e36f3920e
Signed-off-by: Jae-young Hwang <j-zero.hwang@samsung.com>
logutil.c
patch
|
blob
|
history
diff --git
a/logutil.c
b/logutil.c
index
1c1355d
..
a66c4b4
100755
(executable)
--- a/
logutil.c
+++ b/
logutil.c
@@
-678,9
+678,7
@@
int main(int argc, char **argv)
}
g_dev_count = 1;
- int accessmode =
- (mode == O_RDONLY) ? R_OK : 0
- | (mode == O_WRONLY) ? W_OK : 0;
+ int accessmode = (mode == O_RDONLY) ? R_OK : (mode == O_WRONLY) ? W_OK : 0;
// only add this if it's available
if (0 == access("/dev/"LOGGER_LOG_SYSTEM, accessmode)) {