diff options
Diffstat (limited to '')
-rw-r--r-- | util/iobuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/iobuf.c b/util/iobuf.c index 466f07e31..61e1c5909 100644 --- a/util/iobuf.c +++ b/util/iobuf.c @@ -283,7 +283,7 @@ iobuf_cancel( IOBUF a ) { const char *s; - if( a->usage == 2 ) { + if( a && a->usage == 2 ) { s = iobuf_get_fname(a); if( s && *s ) remove(s); /* remove the file. Fixme: this will fail for MSDOZE*/ |