diff options
author | David Tardon <dtardon@redhat.com> | 2015-12-07 13:09:07 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2015-12-07 13:13:55 +0100 |
commit | 7f73ea2e3975b305e09467eb7980a3d01cd37de9 (patch) | |
tree | e641c2469734f543baa38c2bdb2239101409daab | |
parent | 573cd28987614a8893f47f67f05587b7afd86546 (diff) |
tdf#96243 don't crash if LibO install. wasn't found
Change-Id: I538e7238feb711a7d71faf745033264894f688f4
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKitInit.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitInit.h b/include/LibreOfficeKit/LibreOfficeKitInit.h index a5b503568e48..66d52837fd10 100644 --- a/include/LibreOfficeKit/LibreOfficeKitInit.h +++ b/include/LibreOfficeKit/LibreOfficeKitInit.h @@ -220,6 +220,8 @@ static LibreOfficeKit *lok_init_2( const char *install_path, const char *user_p LokHookFunction2 *pSym2; dlhandle = lok_dlopen(install_path, &imp_lib); + if (!dlhandle) + return NULL; pSym2 = (LokHookFunction2 *) lok_dlsym(dlhandle, "libreofficekit_hook_2"); if (!pSym2) |