vcl/unx/gtk3/gtk3gtkframe.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a93a0ff49c9ad576b25b5c9357a15f40ac0962bc
Author: Caolán McNamara <caol...@redhat.com>
Date:   Thu Mar 1 15:02:17 2018 +0000

    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

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)
         {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to