From: ben Date: Sun, 12 Jan 2003 14:44:12 +0000 (+0000) Subject: Don't fatalbox() unconditionally when opening a connection, since that makes X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/5eec331cccfb226c1058f3c3be656a765822c922?ds=sidebyside;hp=9b41d3a8fae7c9f0a1d279c205a86a91e85728d1 Don't fatalbox() unconditionally when opening a connection, since that makes it a little difficult to do anything. git-svn-id: svn://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);