X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/bf61b5660299e88399304cd8eb9bacddc73a765b..b89053c0750e42d88ff92e3efc3d546f18a6d435:/mac/macterm.c diff --git a/mac/macterm.c b/mac/macterm.c index b38c3ece..014260c1 100644 --- a/mac/macterm.c +++ b/mac/macterm.c @@ -1,4 +1,4 @@ -/* $Id: macterm.c,v 1.40 2003/01/12 01:25:34 ben Exp $ */ +/* $Id: macterm.c,v 1.41 2003/01/12 13:50:04 ben Exp $ */ /* * Copyright (c) 1999 Simon Tatham * Copyright (c) 1999, 2002 Ben Harris @@ -188,7 +188,8 @@ void mac_startsession(Session *s) ShowWindow(s->window); s->next = sesslist; s->prev = s->next->prev; - s->next->prev = &s->next; + if (ret->next != NULL) + s->next->prev = &s->next; sesslist = s; }