diff --git a/source/src/stream.cpp b/source/src/stream.cpp index d68dde60..471b21c0 100644 --- a/source/src/stream.cpp +++ b/source/src/stream.cpp @@ -594,7 +594,7 @@ struct gzstream : stream if(reading) { - if(!checkheader()) { stopreading(); return false; } + if(!checkheader()) { stopreading(); file = NULL; return false; } } else if(writing) writeheader(); return true;