Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
Fix error in OutputFile destructor
Browse files Browse the repository at this point in the history
Spotted by Jonathan Lafleche
  • Loading branch information
cfeck committed Nov 6, 2013
1 parent 51fd8df commit 97427ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ OutputFile::OutputFile(const char *filename)

OutputFile::~OutputFile()
{
if (d->fd) {
if (d->fd != -1) {
close(d->fd);
}
delete d;
Expand Down

0 comments on commit 97427ac

Please sign in to comment.