Fix exceptions about checking errno 07/194007/2
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 28 Nov 2018 07:39:38 +0000 (16:39 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 29 Nov 2018 02:55:24 +0000 (11:55 +0900)
commit9dcb91a1ea13aa84dbc5ea6d8bbc865721f7fd94
tree6f1a5e83798dc3b0558479fc1c2664cfc6a7b800
parent79ffeff339ba93be886a8552bab5beded7772dae
Fix exceptions about checking errno

Before calling dlog_print function, the result value should be set.
While calling dlog_print function, the errno value can be changed.
If the error is occurred after calling inotify_rm_watch function,
the errno value is EBADF or EINVAL.

Change-Id: Ic0773c09db18235d9db3c3f2ceb901c17e3b525f
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/preference_inoti.c