summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-12-07 13:09:07 +0100
committerDavid Tardon <dtardon@redhat.com>2015-12-07 13:13:55 +0100
commit7f73ea2e3975b305e09467eb7980a3d01cd37de9 (patch)
treee641c2469734f543baa38c2bdb2239101409daab /include
parent573cd28987614a8893f47f67f05587b7afd86546 (diff)
tdf#96243 don't crash if LibO install. wasn't found
Change-Id: I538e7238feb711a7d71faf745033264894f688f4
Diffstat (limited to 'include')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitInit.h2
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)