summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-05-27 10:38:25 -0700
committerMarcel Holtmann <marcel@holtmann.org>2011-05-27 10:38:25 -0700
commit755e960a3c0c30da850142544d4977d184435116 (patch)
tree288cc8c460309761cee5e81d34ce67746136e6cf
parente833fd6a611f968cdc3a7079a8eaf027c48e8320 (diff)
downloadconnman-755e960a3c0c30da850142544d4977d184435116.tar.gz
connman-755e960a3c0c30da850142544d4977d184435116.tar.bz2
connman-755e960a3c0c30da850142544d4977d184435116.zip
timezone: Fix error handling of inotify function
-rw-r--r--src/timezone.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/timezone.c b/src/timezone.c
index 263ee4ef..faf4488b 100644
--- a/src/timezone.c
+++ b/src/timezone.c
@@ -415,6 +415,9 @@ int __connman_timezone_init(void)
g_free(dirname);
+ if (wd < 0)
+ return -EIO;
+
return 0;
}