fix crash bug when no name defined
This commit is contained in:
parent
6d91153212
commit
06de965f4b
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: Remember.cc,v 1.22 2003/06/05 17:40:02 fluxgen Exp $
|
// $Id: Remember.cc,v 1.23 2003/06/06 14:07:22 rathnor Exp $
|
||||||
|
|
||||||
#include "Remember.hh"
|
#include "Remember.hh"
|
||||||
#include "StringUtil.hh"
|
#include "StringUtil.hh"
|
||||||
|
@ -130,7 +130,7 @@ std::string getWMClass(Window w) {
|
||||||
|
|
||||||
if (XGetClassHint(FbTk::App::instance()->display(), w, &ch) == 0) {
|
if (XGetClassHint(FbTk::App::instance()->display(), w, &ch) == 0) {
|
||||||
cerr<<"Failed to read class hint!"<<endl;
|
cerr<<"Failed to read class hint!"<<endl;
|
||||||
return 0;
|
return "";
|
||||||
} else {
|
} else {
|
||||||
string instance_name;
|
string instance_name;
|
||||||
if (ch.res_name != 0) {
|
if (ch.res_name != 0) {
|
||||||
|
|
Loading…
Reference in a new issue