summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-01 15:02:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-03-01 15:04:54 +0000
commita93a0ff49c9ad576b25b5c9357a15f40ac0962bc (patch)
treef53b282169e17f2ab33180aa3a522cbf225812e6 /vcl
parent0a9a3f14f4f6cef46a816f9f4c6c4d14f981be60 (diff)
debuging versions crash a lot
regression from... commit c3074cb5784329eaf558c2f58d96a64085b42d48 Date: Sun Jan 7 00:39:33 2018 +1100 vcl: remove dead code Change-Id: I1a81ae3fe8063377deaf41a9159d763ca9b4f9c4
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk3/gtk3gtkframe.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 835748c49029..0171bdfcf696 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -387,7 +387,7 @@ bool GtkSalFrame::doKeyCallback( guint state,
char* pKeyDebug = nullptr;
pKeyDebug = getenv("VCL_GTK3_PAINTDEBUG");
- if (strlen(pKeyDebug) == 1 && pKeyDebug[0] == '1')
+ if (pKeyDebug && *pKeyDebug == '1')
{
if (bDown)
{