bitcoin/bitcoin — pull request #1954 by Diapolo (2012-10-24 13:28:24+00:00)
Title: prevent GetDataDir() from returning an empty path

- if -datadir= is no directory don't return an empty path, but instead
create / use the default data dir
- check for existance of the final datadir, before trying to create it

This should fix #1950.