summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Stelmach <l.stelmach@samsung.com>2018-09-19 12:04:50 +0200
committerŁukasz Stelmach <l.stelmach@samsung.com>2018-09-19 13:28:54 +0200
commita3bb1e1e1085dd789137d63c8fa54cd4f6a325cf (patch)
tree8dc5ad86484c2e5f340cbd2ce328fd53a6597073
parent381c327cec73fd059aaa3fc6efb9d141606d4995 (diff)
downloadresourced-accepted/tizen_5.0_unified.tar.gz
resourced-accepted/tizen_5.0_unified.tar.bz2
resourced-accepted/tizen_5.0_unified.zip
This will probably prevent the whole module from initializing properly, if it requires logging, but prevents the whole resourced from blowing up. Change-Id: Ic7a544a1fe66402e20a4974f006c3d5fd09aa7af Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
-rw-r--r--src/heart/logging.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/heart/logging.c b/src/heart/logging.c
index 0fc03ebc..27db3ed0 100644
--- a/src/heart/logging.c
+++ b/src/heart/logging.c
@@ -376,7 +376,13 @@ int logging_module_init(char *name, enum logging_period max_period,
assert(logging_instance);
logging_instance->ref = 0;
- logging_init(NULL);
+ ret = logging_init(NULL);
+ if (ret != RESOURCED_ERROR_NONE) {
+ free(logging_instance);
+ logging_instance = NULL;
+ _E("failed to init logging");
+ return ret;
+ }
}
logging_instance->ref++;