From 5573fcc6728251879949f43d9121f7fc61d16b21 Mon Sep 17 00:00:00 2001 From: chrisparker126 Date: Sun, 20 Apr 2014 09:12:26 +0000 Subject: [PATCH] bug fix, str should be cleared of previous data to prevent fall through of previous result git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7285 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/util/retrodb.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libretroshare/src/util/retrodb.cc b/libretroshare/src/util/retrodb.cc index 9ffcf857b..8be55caee 100644 --- a/libretroshare/src/util/retrodb.cc +++ b/libretroshare/src/util/retrodb.cc @@ -716,6 +716,7 @@ double RetroCursor::getDouble(int columnIndex){ } void RetroCursor::getString(int columnIndex, std::string &str){ + str.clear(); char* raw_str = (char*)sqlite3_column_text(mStmt, columnIndex); if(raw_str != NULL) {