mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-14 23:07:55 +02:00
Patch #3539678: Copy constructor does not initialize allocated_ for stringValue (contributed by rmongia).
This commit is contained in:
@@ -470,7 +470,10 @@ Value::Value( const Value &other )
|
||||
allocated_ = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
value_.string_ = 0;
|
||||
allocated_ = false;
|
||||
}
|
||||
break;
|
||||
#ifndef JSON_VALUE_USE_INTERNAL_MAP
|
||||
case arrayValue:
|
||||
|
Reference in New Issue
Block a user