Fix jsonobject.h bug.2
This commit is contained in:
@@ -81,7 +81,7 @@ void JsonObject::setBool(const char *catergory, const char *stringName, bool val
|
|||||||
bool JsonObject::getBool(const char* catergory, const char* stringName)
|
bool JsonObject::getBool(const char* catergory, const char* stringName)
|
||||||
{
|
{
|
||||||
if (!loadcfg())
|
if (!loadcfg())
|
||||||
return nullptr;
|
return false;
|
||||||
|
|
||||||
cJSON* first = cJSON_GetObjectItem((cJSON*)json_root, catergory);
|
cJSON* first = cJSON_GetObjectItem((cJSON*)json_root, catergory);
|
||||||
if (!first) return false;
|
if (!first) return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user