Skip to content

Commit

Permalink
Fix bug in TBValue::SetObject.
Browse files Browse the repository at this point in the history
  • Loading branch information
fruxo committed Jul 15, 2014
1 parent 71eda21 commit e649453
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tb/tb_value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ void TBValue::SetString(const char *val, SET set)
void TBValue::SetObject(TBTypedObject *object)
{
SetNull();
m_packed.type = TYPE_OBJECT;
m_packed.allocated = true;
val_obj = object;
}
Expand Down

0 comments on commit e649453

Please sign in to comment.