diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 09:43:14 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 09:58:40 +0100 |
commit | 1a77081b3d88a222c70634c266dbaabbc444d660 (patch) | |
tree | 025ccb456c54b93e69dadea95eb08da3f37b89f2 /libreofficekit | |
parent | 4d58121e6da309ac083fd45f4d816c05d697dfc0 (diff) |
lok_init can fail (in which case it printed sth to stderr already)
Change-Id: I1c59a4fabf2f48f5f3637077496be5e252794b60
Diffstat (limited to 'libreofficekit')
-rw-r--r-- | libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx index e6a8d8218fc8..8f804f0e6060 100644 --- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx @@ -208,6 +208,8 @@ int main( int argc, char* argv[] ) } pOffice = lok_init( argv[1] ); + if ( pOffice == NULL ) + return 1; gtk_init( &argc, &argv ); |