aboutsummaryrefslogtreecommitdiffhomepage
path: root/gtk/PlatGTK.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-05-04 05:27:26 +0000
committernyamatongwe <unknown>2010-05-04 05:27:26 +0000
commitf4faf8104154056d1ee16c4fe28d6f0e93911d44 (patch)
tree5edb502dcc1a8e8f763d5fbb6d0b92545c718c38 /gtk/PlatGTK.cxx
parentb764b7a5b34f51593a97e44ea057d7dd585a9cba (diff)
downloadscintilla-mirror-f4faf8104154056d1ee16c4fe28d6f0e93911d44.tar.gz
Fixed some warnings from clang --analyze.
Diffstat (limited to 'gtk/PlatGTK.cxx')
-rw-r--r--gtk/PlatGTK.cxx2
1 files changed, 1 insertions, 1 deletions
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] = '-';