From a208efdaf9d242c8812d8811d1f4981c3d7f514a Mon Sep 17 00:00:00 2001 From: joss17 Date: Wed, 10 Mar 2010 16:19:28 +0000 Subject: [PATCH] fix a bug in the double file configuration loading git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2513 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/pqi/p3cfgmgr.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libretroshare/src/pqi/p3cfgmgr.cc b/libretroshare/src/pqi/p3cfgmgr.cc index deb96b92f..84f7110f1 100644 --- a/libretroshare/src/pqi/p3cfgmgr.cc +++ b/libretroshare/src/pqi/p3cfgmgr.cc @@ -537,6 +537,7 @@ bool p3Config::loadConfiguration(std::string &loadHash) bool pass = getHashAttempt(loadHash, hashstr, cfg_fname, load); if(!pass){ + load.clear(); pass = getHashAttempt(loadHash, hashstr, cfg_fname_backup, load); #ifdef CONFIG_DEBUG std::cerr << "p3Config::loadConfiguration() ERROR: Failed to get Hash from " << success_fname << std::endl;