rstypeserializer fix uninitialized variable usage

This commit is contained in:
Gioacchino Mazzurco 2018-10-05 01:23:17 +02:00
parent 0f01f110ad
commit 341a68ce07
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -655,7 +655,7 @@ struct RsTypeSerializer
break;
case RsGenericSerializer::FROM_JSON:
{
uint32_t f;
uint32_t f = 0;
ctx.mOk &=
(ctx.mOk || ctx.mFlags & RsGenericSerializer::SERIALIZATION_FLAG_YIELDING)
&& from_JSON(memberName, f, ctx.mJson);