We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dcca2e commit bd8efe2Copy full SHA for bd8efe2
modules/openapi-generator/src/main/resources/C-libcurl/model-body.mustache
@@ -666,7 +666,13 @@ fail:
666
{
667
goto end;
668
}
669
- list_addElement({{{name}}}List , &{{{name}}}_local->valuedouble);
+ double *{{{name}}}_local_value = (double *)calloc(1, sizeof(double));
670
+ if(!{{{name}}}_local_value)
671
+ {
672
+ goto end;
673
+ }
674
+ *{{{name}}}_local_value = {{{name}}}_local->valuedouble;
675
+ list_addElement({{{name}}}List , {{{name}}}_local_value);
676
{{/isNumeric}}
677
{{#isBoolean}}
678
if(!cJSON_IsBool({{{name}}}_local))
0 commit comments