bitcoin/bitcoin — pull request #2057 by Diapolo (2012-12-01 10:38:47+00:00)
Title: FlushBlockFile(): check for valid FILE pointer

- don't call FileCommit() and fclose() if no valid FILE pointer was
returned by OpenBlockFile()