strWalletFileName was being declared again as a local variable in
AppInit2 instead of defining the value of the global variable declared
in init.h. Consequently, an empty string was being given to the
constructor of CWalletDB in OptionsModel::Upgrade().
strWalletFileName was being declared again as a local variable in AppInit2 instead of defining the value of the global variable declared in init.h. Consequently, an empty string was being given to the constructor of CWalletDB in OptionsModel::Upgrade().