From 4d1cf5269ce9db7a55c9be8fb51fda675c5d8223 Mon Sep 17 00:00:00 2001 From: forsyth Date: Thu, 15 Jul 2010 17:13:02 +0100 Subject: 20100715-1712 --- emu/port/devsnarf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'emu/port/devsnarf.c') diff --git a/emu/port/devsnarf.c b/emu/port/devsnarf.c index 4778c130..dda5fe31 100644 --- a/emu/port/devsnarf.c +++ b/emu/port/devsnarf.c @@ -63,7 +63,8 @@ snarfclose(Chan* c) /* this must be the last reference: no need to lock */ if(c->mode == ORDWR || c->mode == OWRITE){ if(!waserror()){ - clipwrite(c->aux); + if(c->aux != nil) + clipwrite(c->aux); poperror(); } } -- cgit v1.2.3