summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk/app/gtksys.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk/app/gtksys.cxx b/vcl/unx/gtk/app/gtksys.cxx
index b752cce84891..dbe1c47c7e89 100644
--- a/vcl/unx/gtk/app/gtksys.cxx
+++ b/vcl/unx/gtk/app/gtksys.cxx
@@ -118,7 +118,7 @@ static int _fallback_get_primary_monitor (GdkScreen *pScreen)
for (int i = 0; i < max && ret < 0; i++)
{
char *name = gdk_screen_get_monitor_plug_name (pScreen, i);
- if (!g_ascii_strncasecmp (name, "LVDS", 4))
+ if (name && !g_ascii_strncasecmp (name, "LVDS", 4))
ret = i;
g_free (name);
}