From a253fd18fde8ca3e012430f8bbef928a2d22b2a2 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 4 May 2010 05:27:26 +0000 Subject: Fixed some warnings from clang --analyze. --- gtk/PlatGTK.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk') diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx index 55947113e..b90b8c46e 100644 --- a/gtk/PlatGTK.cxx +++ b/gtk/PlatGTK.cxx @@ -347,7 +347,7 @@ static void GenerateFontSpecStrings(const char *fontName, int characterSet, d2 = strchr(d1 + 1, '-'); if (d2) d3 = strchr(d2 + 1, '-'); - if (d3) { + if (d3 && d2) { // foundary-fontface-isoxxx-x *d2 = '\0'; foundary[0] = '-'; -- cgit v1.2.3