• Home
  • Raw
  • Download

Lines Matching refs:NULL

56     FILE *fp = NULL;  in GetFileContext()
58 char *contextBuffer = NULL; in GetFileContext()
67 if (strlen(inputFile) > PATH_MAX || realpath(inputFile, path) == NULL) { in GetFileContext()
83 if (contextBuffer == NULL) { in GetFileContext()
89 if (fp == NULL) { in GetFileContext()
113 FILE *fp = NULL; in ConvertedContextSaveAsFile()
122 if (strlen(outDirPath) > PATH_MAX || realpath(outDirPath, path) == NULL) { in ConvertedContextSaveAsFile()
144 if (fp == NULL) { in ConvertedContextSaveAsFile()
174 cJSON *jsonArrayItem = NULL; in SetOsSyscap()
175 cJSON *osCapIndex = NULL; in SetOsSyscap()
179 if (jsonArrayItem == NULL || !cJSON_IsString(jsonArrayItem)) { in SetOsSyscap()
184 if (osCapIndex == NULL || !cJSON_IsNumber(osCapIndex)) { in SetOsSyscap()
204 char *priSyscapStr = NULL; in SetPriSyscap()
207 if (jsonArrayItem == NULL || !cJSON_IsString(jsonArrayItem)) { in SetPriSyscap()
225 if (jsonSyscapObj == NULL || !cJSON_IsNumber(jsonSyscapObj)) { in SetPCIDHeader()
233 if (jsonSyscapObj == NULL || !cJSON_IsString(jsonSyscapObj)) { in SetPCIDHeader()
247 if (jsonSyscapObj == NULL || !cJSON_IsNumber(jsonSyscapObj)) { in SetPCIDHeader()
263 if (osSyscap == NULL || !cJSON_IsArray(osSyscap)) { in GetOsAndPriSyscapSize()
275 if (priSyscap != NULL && cJSON_IsArray(priSyscap)) { in GetOsAndPriSyscapSize()
282 } else if (priSyscap == NULL) { in GetOsAndPriSyscapSize()
296 if (jsonArrayItem == NULL || !cJSON_IsString(jsonArrayItem)) { in GetPriSyscapLen()
314 char *contextBuffer = NULL; in CreatePCID()
324 if (jsonRootObj == NULL) { in CreatePCID()
331 if (jsonSyscapObj == NULL || !cJSON_IsObject(jsonSyscapObj)) { in CreatePCID()
352 if (pcidBuffer == NULL) { in CreatePCID()
388 if (capVectorPtr == NULL) { in GetOsSyscap()
429 if (capVectorPtr == NULL) { in GetPriSyscap()
475 char *contextBuffer = NULL; in DecodePCID()
496 (pcidMain->systemType == 0b100 ? "standard" : NULL)); in DecodePCID()
497 if (systemType == NULL) { in DecodePCID()
505 if (sysCapObj == NULL) { in DecodePCID()
520 if (jsonRootObj == NULL) { in DecodePCID()
546 sysCapObj = NULL; // avoid being released repeatedly. in DecodePCID()
617 (header->systemType == 0b100 ? "standard" : NULL)); in AddHeaderToJsonObj()
618 if (systemType == NULL) { in AddHeaderToJsonObj()
642 if (sysCapArray == NULL) { in AddOsSyscapToJsonObj()
689 char *token = NULL; in AddPriSyscapToJsonObj()
692 if (sysCapArray == NULL) { in AddPriSyscapToJsonObj()
707 while (token != NULL) { in AddPriSyscapToJsonObj()
713 token = strtok(NULL, ","); in AddPriSyscapToJsonObj()
729 char *ctx = NULL; in DecodeStringPCIDToJson()
730 char *priSyscapStr = NULL; in DecodeStringPCIDToJson()
785 uint32_t *mainSyscap = NULL; in EncodePcidscToString()
787 char *contextBuffer = NULL; in EncodePcidscToString()
788 char *privateSyscap = NULL; in EncodePcidscToString()
789 char *priSyscapFull = NULL; in EncodePcidscToString()
790 char *output = NULL; in EncodePcidscToString()
791 PCIDMain *pcidMain = NULL; in EncodePcidscToString()
821 if (priSyscapFull == NULL) { in EncodePcidscToString()
850 if (output == NULL) { in EncodePcidscToString()