mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-08 17:30:13 +02:00
Patch #3539678: Copy constructor does not initialize allocated_ for stringValue (contributed by rmongia).
This commit is contained in:
parent
f8715856f3
commit
3f124172ce
5
NEWS.txt
5
NEWS.txt
@ -31,6 +31,11 @@ New in SVN
|
|||||||
representable using an Int64, or asDouble() combined with minInt64 and
|
representable using an Int64, or asDouble() combined with minInt64 and
|
||||||
maxInt64 to figure out whether it is approximately representable.
|
maxInt64 to figure out whether it is approximately representable.
|
||||||
|
|
||||||
|
* Bug fixes
|
||||||
|
- Patch #3539678: Copy constructor does not initialize allocated_ for stringValue
|
||||||
|
(contributed by rmongia).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
New in JsonCpp 0.6.0:
|
New in JsonCpp 0.6.0:
|
||||||
---------------------
|
---------------------
|
||||||
|
@ -470,7 +470,10 @@ Value::Value( const Value &other )
|
|||||||
allocated_ = true;
|
allocated_ = true;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
value_.string_ = 0;
|
value_.string_ = 0;
|
||||||
|
allocated_ = false;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
#ifndef JSON_VALUE_USE_INTERNAL_MAP
|
#ifndef JSON_VALUE_USE_INTERNAL_MAP
|
||||||
case arrayValue:
|
case arrayValue:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user