Really fix serialization of NULL values.
[INTERPRETER] * BUG: Really fix serialization of NULL values.
This commit is contained in:
parent
c4b61aea83
commit
6c1b9d6858
1 changed files with 6 additions and 2 deletions
|
@ -1421,15 +1421,19 @@ void STREAM_write_type(STREAM *stream, TYPE type, VALUE *value)
|
|||
|
||||
case T_OBJECT:
|
||||
{
|
||||
CLASS *class = OBJECT_class(value->_object.object);
|
||||
CLASS *class;
|
||||
void *structure;
|
||||
|
||||
if (!value->_object.object)
|
||||
{
|
||||
buffer._byte = 0;
|
||||
STREAM_write(stream, &buffer._byte, 1);
|
||||
break;
|
||||
}
|
||||
else if (class->quick_array == CQA_ARRAY || class->is_array_of_struct)
|
||||
|
||||
class = OBJECT_class(value->_object.object)
|
||||
|
||||
if (class->quick_array == CQA_ARRAY || class->is_array_of_struct)
|
||||
{
|
||||
CARRAY *array = (CARRAY *)value->_object.object;
|
||||
VALUE temp;
|
||||
|
|
Loading…
Reference in a new issue