summaryrefslogtreecommitdiffstats
path: root/libreofficekit
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-21 14:38:36 +0000
committerMichael Stahl <michael.stahl@allotropia.de>2021-07-09 11:12:57 +0200
commit531886dd79edb6637685e9f7b9961257a3ad4a06 (patch)
tree43d45240cc832f83845278c7fa6ffbe3ea12db37 /libreofficekit
parentcid#1474277 Resource leak (diff)
downloadcore-531886dd79edb6637685e9f7b9961257a3ad4a06.tar.gz
core-531886dd79edb6637685e9f7b9961257a3ad4a06.zip
cid#1474127 Unchecked return value from library
Change-Id: I6dac6f24d33ce4557ab94ff08357e597819510d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112839 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit 9456a764a98daa2915f6fefac336d8bb5cff531a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118619 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 2a4b90cc8de5..c1fcc5542750 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -2776,10 +2776,10 @@ static gboolean lok_doc_view_initable_init (GInitable *initable, GCancellable* /
return true;
if (priv->m_bUnipoll)
- g_setenv("SAL_LOK_OPTIONS", "unipoll", FALSE);
+ (void)g_setenv("SAL_LOK_OPTIONS", "unipoll", FALSE);
static const char testingLangs[] = "de_DE en_GB en_US es_ES fr_FR it nl pt_BR pt_PT ru";
- g_setenv("LOK_ALLOWLIST_LANGUAGES", testingLangs, FALSE);
+ (void)g_setenv("LOK_ALLOWLIST_LANGUAGES", testingLangs, FALSE);
priv->m_pOffice = lok_init_2(priv->m_aLOPath.c_str(), priv->m_aUserProfileURL.empty() ? nullptr : priv->m_aUserProfileURL.c_str());