From 755e960a3c0c30da850142544d4977d184435116 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Fri, 27 May 2011 10:38:25 -0700 Subject: [PATCH] timezone: Fix error handling of inotify function --- src/timezone.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/timezone.c b/src/timezone.c index 263ee4e..faf4488 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; } -- 2.7.4