Fix a segfault while attempting to close an unopened file
authorDmitri Vorobiev <dmitri.vorobiev@movial.com>
Tue, 5 Oct 2010 10:55:07 +0000 (13:55 +0300)
committerDmitri Vorobiev <dmitri.vorobiev@movial.com>
Tue, 5 Oct 2010 10:55:07 +0000 (13:55 +0300)
commita59873dc04da25f3406f1c4122d7eb5ddb60e35a
tree721e574c4825422b68a1440baf56c07c7971871b
parentd84ee857ae964cdef412756889eabda10d349f32
Fix a segfault while attempting to close an unopened file

When using stdout only for benchmark output, we must not
attempt to close the output stream when exiting the program,
otherwise we get a SIGSEGV.
main.c