diff --git a/src/create_pcid.c b/src/create_pcid.c index 5a73c712287cf9d6bd2f21b0280d20e65e13338c..c2aa7e7406ded7ee33206db77a16268275bdb2f7 100644 --- a/src/create_pcid.c +++ b/src/create_pcid.c @@ -528,10 +528,6 @@ int32_t DecodePCID(char *inputFile, char *outDirPath) } freePcidJsonInfo.strJson = cJSON_Print(freePcidJsonInfo.jsonRootObj); - if (freePcidJsonInfo.strJson == NULL) { - PRINT_ERR("cJSON_Print failed to generate JSON string\n"); - return FreeAfterDecodePCID(freePcidJsonInfo, FREE_DECODE_PCID_ROOT_OUT, -1); - } const char outputFileName[] = "pcid.json"; ret = ConvertedContextSaveAsFile(outDirPath, outputFileName, freePcidJsonInfo.strJson,