summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-04-04 18:42:55 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2019-04-04 18:42:55 +0200
commitfc678c26b0c073cbb863bbde855ab6039c89aa96 (patch)
treef6bbd4f62e379761960c61743d849cc11473f3cc
parent9b7f020ed35ebb0711ceb633aa8accbb0512ffe2 (diff)
parent42afc70b6a41f32d4e70cea8dfe3e9b1bb9789f6 (diff)
Merge remote-tracking branch 'origin/master'
-rw-r--r--fluid/Fl_Window_Type.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx
index e0c8bc0c4..ac1f4dca2 100644
--- a/fluid/Fl_Window_Type.cxx
+++ b/fluid/Fl_Window_Type.cxx
@@ -1479,6 +1479,8 @@ void Fl_Widget_Class_Type::read_property(const char *c) {
// Convert A::B::C::D to D (i.e. keep only innermost name)
// This is useful for classes that contain a namespace component
static const char *trimclassname(const char *n) {
+ if (!n)
+ return NULL;
const char *nn;
while((nn = strstr(n, "::"))) {
n = nn + 2;