bitcoin/bitcoin — pull request #2242 by Diapolo (2013-01-30 15:24:15+00:00)
Title: fix crash with -reindex and empty datadir

- check for existance of /blocks/ dir and disable -reindex, if it does
not exists
- also set fReindex to false directly after OpenBlockFile() fails in
ThreadImport() and output "Reindexing aborted"

Intended to fix #2239