Lines Matching refs:NULL
74 cJSON *jsonArrayItem = NULL; in SetOsSyscap()
75 cJSON *osCapIndex = NULL; in SetOsSyscap()
79 if (jsonArrayItem == NULL || !cJSON_IsString(jsonArrayItem)) { in SetOsSyscap()
84 if (osCapIndex == NULL) { in SetOsSyscap()
108 char *priSyscapStr = NULL; in SetPriSyscap()
111 if (jsonArrayItem == NULL || !cJSON_IsString(jsonArrayItem)) { in SetPriSyscap()
129 if (jsonSyscapObj == NULL || !cJSON_IsNumber(jsonSyscapObj)) { in SetPCIDHeader()
137 if (jsonSyscapObj == NULL || !cJSON_IsString(jsonSyscapObj)) { in SetPCIDHeader()
151 if (jsonSyscapObj == NULL || !cJSON_IsNumber(jsonSyscapObj)) { in SetPCIDHeader()
167 if (osSyscap == NULL || !cJSON_IsArray(osSyscap)) { in GetOsAndPriSyscapSize()
179 if (priSyscap != NULL && cJSON_IsArray(priSyscap)) { in GetOsAndPriSyscapSize()
186 } else if (priSyscap == NULL) { in GetOsAndPriSyscapSize()
200 if (jsonArrayItem == NULL || !cJSON_IsString(jsonArrayItem)) { in GetPriSyscapLen()
239 char *contextBuffer = NULL; in CreatePCID()
245 return FreeAfterCreatePCID(NULL, allOsSyscapObj, contextBuffer, 0, -1); in CreatePCID()
249 if (jsonRootObj == NULL) { in CreatePCID()
251 return FreeAfterCreatePCID(NULL, allOsSyscapObj, contextBuffer, 0, -1); in CreatePCID()
255 if (jsonSyscapObj == NULL || !cJSON_IsObject(jsonSyscapObj)) { in CreatePCID()
257 return FreeAfterCreatePCID(NULL, allOsSyscapObj, contextBuffer, 0, -1); in CreatePCID()
264 return FreeAfterCreatePCID(NULL, allOsSyscapObj, contextBuffer, 0, ret); in CreatePCID()
270 return FreeAfterCreatePCID(NULL, allOsSyscapObj, contextBuffer, 0, ret); in CreatePCID()
275 if (pcidBuffer == NULL) { in CreatePCID()
277 return FreeAfterCreatePCID(NULL, allOsSyscapObj, contextBuffer, 0, -1); in CreatePCID()
299 if (capVectorPtr == NULL) { in GetOsSyscap()
341 if (capVectorPtr == NULL) { in GetPriSyscap()
387 if (freePcidJsonInfo.sysCapObj == NULL) { in CheckSysCapObj()
454 freePcidJsonInfo.strJson = NULL; in DecodePCID()
455 freePcidJsonInfo.contextBuffer = NULL; in DecodePCID()
456 freePcidJsonInfo.jsonRootObj = NULL; in DecodePCID()
457 freePcidJsonInfo.sysCapObj = NULL; in DecodePCID()
477 (pcidMain->systemType == 0b100 ? "standard" : NULL)); in DecodePCID()
478 if (systemType == NULL) { in DecodePCID()
492 if (freePcidJsonInfo.jsonRootObj == NULL) { in DecodePCID()
502 freePcidJsonInfo.sysCapObj = NULL; // avoid being released repeatedly. in DecodePCID()
563 (header->systemType == 0b100 ? "standard" : NULL)); in AddHeaderToJsonObj()
564 if (systemType == NULL) { in AddHeaderToJsonObj()
588 if (sysCapArray == NULL) { in AddOsSyscapToJsonObj()
635 char *token = NULL; in AddPriSyscapToJsonObj()
638 if (sysCapArray == NULL) { in AddPriSyscapToJsonObj()
653 while (token != NULL) { in AddPriSyscapToJsonObj()
659 token = strtok(NULL, ","); in AddPriSyscapToJsonObj()
675 char *ctx = NULL; in DecodeStringPCIDToJson()
676 char *priSyscapStr = NULL; in DecodeStringPCIDToJson()
750 char *output = NULL; in GetEncodePCIDOut()
753 if (output == NULL) { in GetEncodePCIDOut()
817 uint32_t *mainSyscap = NULL; in EncodePcidscToString()
820 char *privateSyscap = NULL; in EncodePcidscToString()
822 freePcidInfo.contextBuffer = NULL; in EncodePcidscToString()
823 freePcidInfo.priSyscapFull = NULL; in EncodePcidscToString()
824 freePcidInfo.output = NULL; in EncodePcidscToString()
826 PCIDMain *pcidMain = NULL; in EncodePcidscToString()
856 if (freePcidInfo.priSyscapFull == NULL) { in EncodePcidscToString()