From d2d633a1667ea16c9c88eae9d679c91c545a77ee Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 1 Feb 2017 20:11:44 +0300 Subject: fix for null avatar hash processing --- libs/libjson/src/internalJSONNode.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libs/libjson/src/internalJSONNode.cpp') diff --git a/libs/libjson/src/internalJSONNode.cpp b/libs/libjson/src/internalJSONNode.cpp index 411c12582e..38ca24ff29 100644 --- a/libs/libjson/src/internalJSONNode.cpp +++ b/libs/libjson/src/internalJSONNode.cpp @@ -38,7 +38,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ static const json_string CONST_TRUE(JSON_TEXT("true")); static const json_string CONST_FALSE(JSON_TEXT("false")); -static const json_string CONST_NULL(JSON_TEXT("null")); #ifdef JSON_UNIT_TEST void internalJSONNode::incinternalAllocCount(void){ JSONNode::incinternalAllocCount(); } @@ -344,7 +343,7 @@ void internalJSONNode::Nullify(bool validation) const { void internalJSONNode::Nullify(void) const { #endif _type = JSON_NULL; - _string = CONST_NULL; + _string.clear(); SetFetched(true); } -- cgit v1.2.3