fix crash bug when no name defined
rathnor rathnor
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/Remember.cc
→
src/Remember.cc
@@ -21,7 +21,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // 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 "StringUtil.hh"@@ -130,7 +130,7 @@ XClassHint ch;
if (XGetClassHint(FbTk::App::instance()->display(), w, &ch) == 0) { cerr<<"Failed to read class hint!"<<endl; - return 0; + return ""; } else { string instance_name; if (ch.res_name != 0) {