From 8b1c37dcd82e24b1249b00395f90b6b4b847563c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 25 May 2015 21:52:57 +0000 Subject: fix for the correct json node validation git-svn-id: http://svn.miranda-ng.org/main/trunk@13835 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/mir_core/src/json/JSONNode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mir_core/src/json/JSONNode.h b/src/mir_core/src/json/JSONNode.h index 3d7fee9be5..0812a70b71 100644 --- a/src/mir_core/src/json/JSONNode.h +++ b/src/mir_core/src/json/JSONNode.h @@ -519,7 +519,7 @@ inline bool JSONNode::isnull(void) const inline JSONNode::operator bool() const { JSON_CHECK_INTERNAL(); - return internal->type() == JSON_NULL; + return internal->type() != JSON_NULL; } inline const json_char* JSONNode::name(void) const { -- cgit v1.2.3