mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-26 16:09:35 -05:00
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
This commit is contained in:
parent
ed198af807
commit
5573fcc672
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user