summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}