diff options
Diffstat (limited to 'emu/port/devsnarf.c')
| -rw-r--r-- | emu/port/devsnarf.c | 3 |
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(); } } |
