diff options
author | rathnor <rathnor> | 2003-06-06 14:07:22 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-06-06 14:07:22 (GMT) |
commit | 06de965f4b8e94bfb791fc14e4f3b05b44b0c73c (patch) | |
tree | 25442b8984d8b9373ee79d281c6028c4c6771d53 /src/Remember.cc | |
parent | 6d91153212f2215042d3c91631f2b11329bfc226 (diff) | |
download | fluxbox-06de965f4b8e94bfb791fc14e4f3b05b44b0c73c.zip fluxbox-06de965f4b8e94bfb791fc14e4f3b05b44b0c73c.tar.bz2 |
fix crash bug when no name defined
Diffstat (limited to 'src/Remember.cc')
-rw-r--r-- | src/Remember.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Remember.cc b/src/Remember.cc index 35d6311..5480d20 100644 --- a/src/Remember.cc +++ b/src/Remember.cc | |||
@@ -21,7 +21,7 @@ | |||
21 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 21 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
22 | // DEALINGS IN THE SOFTWARE. | 22 | // DEALINGS IN THE SOFTWARE. |
23 | 23 | ||
24 | // $Id: Remember.cc,v 1.22 2003/06/05 17:40:02 fluxgen Exp $ | 24 | // $Id: Remember.cc,v 1.23 2003/06/06 14:07:22 rathnor Exp $ |
25 | 25 | ||
26 | #include "Remember.hh" | 26 | #include "Remember.hh" |
27 | #include "StringUtil.hh" | 27 | #include "StringUtil.hh" |
@@ -130,7 +130,7 @@ std::string getWMClass(Window w) { | |||
130 | 130 | ||
131 | if (XGetClassHint(FbTk::App::instance()->display(), w, &ch) == 0) { | 131 | if (XGetClassHint(FbTk::App::instance()->display(), w, &ch) == 0) { |
132 | cerr<<"Failed to read class hint!"<<endl; | 132 | cerr<<"Failed to read class hint!"<<endl; |
133 | return 0; | 133 | return ""; |
134 | } else { | 134 | } else { |
135 | string instance_name; | 135 | string instance_name; |
136 | if (ch.res_name != 0) { | 136 | if (ch.res_name != 0) { |