Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set current_ to keep invariant in error case
The very first time output.Rotate() is called, current_ might be uninitialized. If the open() call fails then, RETURN_IF_ERROR does not set it to a different value. Later calls in Output::Write() will dereference current_ and crash.
- Loading branch information