solve the dead error condition
Change-Id: I025328bc0cace1fe20b449cbda6e8f5e36f3920e
Signed-off-by: Jae-young Hwang <j-zero.hwang@samsung.com>
- 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)) {
// only add this if it's available
if (0 == access("/dev/"LOGGER_LOG_SYSTEM, accessmode)) {