From: Ben Harris Date: Sun, 12 Jan 2003 14:44:12 +0000 (+0000) Subject: Don't fatalbox() unconditionally when opening a connection, since that makes X-Git-Tag: r8855-g4f798d~1778 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=dad70a74fe751c982a9a84fcb4c803232f145c62;p=PuTTY_svn.git Don't fatalbox() unconditionally when opening a connection, since that makes it a little difficult to do anything. git-svn-id: http://svn.tartarus.org/sgt/putty@2559 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/mac/macterm.c b/mac/macterm.c index 9da219b7..59bca7fe 100644 --- a/mac/macterm.c +++ b/mac/macterm.c @@ -1,4 +1,4 @@ -/* $Id: macterm.c,v 1.42 2003/01/12 14:23:00 ben Exp $ */ +/* $Id: macterm.c,v 1.43 2003/01/12 14:44:12 ben Exp $ */ /* * Copyright (c) 1999 Simon Tatham * Copyright (c) 1999, 2002 Ben Harris @@ -174,7 +174,8 @@ void mac_startsession(Session *s) errmsg = s->back->init(s->term, &s->backhandle, s->cfg.host, s->cfg.port, &s->realhost, s->cfg.tcp_nodelay); - fatalbox("%s", errmsg); + if (errmsg != NULL) + fatalbox("%s", errmsg); s->back->provide_logctx(s->backhandle, s->logctx); term_provide_resize_fn(s->term, s->back->size, s->backhandle);