diff options
author | Ingo Huerner <ingo_huerner@mentor.com> | 2017-01-27 13:11:44 +0100 |
---|---|---|
committer | Ingo Huerner <ingo_huerner@mentor.com> | 2017-01-27 13:11:44 +0100 |
commit | 2b2641432537b24e145350ac11719b87c50ab329 (patch) | |
tree | e3389917922d0ee3517819f198864a71a4116cdf /src/persistence_client_library.c | |
parent | 18e5dde1dd0d2dd61460cc27257b8a51f66f75b6 (diff) | |
download | persistence-client-library-2b2641432537b24e145350ac11719b87c50ab329.tar.gz |
Make usage of plugins more robust (Nullpointer check); Added creation of test log file for file API tests
Diffstat (limited to 'src/persistence_client_library.c')
-rw-r--r-- | src/persistence_client_library.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/persistence_client_library.c b/src/persistence_client_library.c index e0c7d9b..022e2a4 100644 --- a/src/persistence_client_library.c +++ b/src/persistence_client_library.c @@ -205,9 +205,11 @@ static int private_pclInitLibrary(const char* appName, int shutdownMode) DLT_LOG(gPclDLTContext, DLT_LOG_INFO, DLT_STRING("PAS interface not enabled, enable with \"./configure --enable-pasinterface\"")); #endif - if(load_custom_plugins(customAsyncInitClbk) < 0) // load custom plugins + if((rval = load_custom_plugins(customAsyncInitClbk)) < 0) // load custom plugins { DLT_LOG(gPclDLTContext, DLT_LOG_WARN, DLT_STRING("Failed to load custom plugins")); + pthread_mutex_unlock(&gDbusPendingRegMtx); + return rval; } init_key_handle_array(); |