summaryrefslogtreecommitdiff
path: root/emu/port/devsnarf.c
diff options
context:
space:
mode:
authorforsyth <forsyth@vitanuova.com>2010-07-15 17:13:02 +0100
committerforsyth <forsyth@vitanuova.com>2010-07-15 17:13:02 +0100
commit4d1cf5269ce9db7a55c9be8fb51fda675c5d8223 (patch)
tree7f3d5e5c801b38cd38116259247dba984a01553d /emu/port/devsnarf.c
parent287839a46d8cf9bfe7ae06f655a4a74f8ba54793 (diff)
20100715-1712
Diffstat (limited to 'emu/port/devsnarf.c')
-rw-r--r--emu/port/devsnarf.c3
1 files changed, 2 insertions, 1 deletions
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();
}
}