if(h264_path == NULL) {
h264_path = (char *)malloc(strlen(pszValue) + strlen(h264_file) + 6);
+ if (!h264_path) {
+ PRINT_UTC_LOG("[Line : %d][%s] Fail to malloc h264 path\n", __LINE__, API_NAMESPACE);
+ _is_broken = true;
+ return;
+ }
snprintf(h264_path, strlen(pszValue) + strlen(h264_file) + 6, "%s/res/%s", pszValue, h264_file );
}
if(file_path == NULL){
file_path = (char *)malloc(strlen(pszValue)+ strlen(file) + 6);
+ if (!file_path) {
+ PRINT_UTC_LOG("[Line : %d][%s] Fail to malloc file_path\n", __LINE__, API_NAMESPACE);
+ _is_broken = true;
+ return;
+ }
snprintf(file_path, strlen(pszValue)+ strlen(file) + 6, "%s/res/%s", pszValue, file );
}
} else {