summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-08-18 16:28:58 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-08-18 21:08:40 +0100
commit951ceab4016f183d8c8be15f50c12538aa196a50 (patch)
tree6a0629af9c3724a606cf45cb4ff529700ca8ae82 /libreofficekit
parentf0d1a4fce2b1859bf0088badfd0c02ddc1054c15 (diff)
coverity#1371131 Dereference after null check
Change-Id: I292ac0b59af2ed8897367d56ddb01bf4606a7693
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index b4e53e1d940c..015633006d1f 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -1355,7 +1355,7 @@ static void callbackWorker (int nType, const char* pPayload, void* pData)
CallbackData* pCallback = new CallbackData(nType, pPayload ? pPayload : "(nil)", pDocView);
LOKDocViewPrivate& priv = getPrivate(pDocView);
std::stringstream ss;
- ss << "callbackWorker, view #" << priv->m_nViewId << ": " << callbackTypeToString(nType) << ", '" << pPayload << "'";
+ ss << "callbackWorker, view #" << priv->m_nViewId << ": " << callbackTypeToString(nType) << ", '" << (pPayload ? pPayload : "(nil)") << "'";
g_info("%s", ss.str().c_str());
gdk_threads_add_idle(callback, pCallback);
}