all repos — fluxbox @ b66dde6e943ec3919a6f4e74cd73397238ccd21a

custom fork of the fluxbox windowmanager

better check these too
markt markt
commit

b66dde6e943ec3919a6f4e74cd73397238ccd21a

parent

008685a90ee1d32b422f7d39011de8a6282d41e5

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/FbTk/FbWindow.ccsrc/FbTk/FbWindow.cc

@@ -483,17 +483,17 @@ ret = FbStringUtil::XStrToFb(stringlist[0]);

} else if (text_prop.encoding == m_utf8string && text_prop.format == 8) { #ifdef X_HAVE_UTF8_STRING Xutf8TextPropertyToTextList(display(), &text_prop, &stringlist, &count); - if (count == 0) + if (count == 0 || stringlist == 0) return ""; #else - if (XTextPropertyToStringList(&text_prop, &stringlist, &count) == 0 || count == 0) + if (XTextPropertyToStringList(&text_prop, &stringlist, &count) == 0 || count == 0 || stringlist == 0) return ""; #endif ret = stringlist[0]; } else { // still returns a "StringList" despite the different name XmbTextPropertyToTextList(display(), &text_prop, &stringlist, &count); - if (count == 0) + if (count == 0 || stringlist == 0) return ""; ret = FbStringUtil::LocaleStrToFb(stringlist[0]);