Fix uninitialized value

We decide whether to close an existing file based on this field, so we'd
better make sure to initialize it.
Merge branch 'feature/uninitialized' into develop

* feature/uninitialized:
  Fix uninitialized value