From daec02b8c555484f61aceb2b40c887f6325f84cd Mon Sep 17 00:00:00 2001 From: Hui Yu Date: Fri, 27 Dec 2019 14:42:05 +0800 Subject: [PATCH] [C-libcurl] Fix build error when the request operation has more than 1 parameter. (#4870) --- .../src/main/resources/C-libcurl/api-body.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/resources/C-libcurl/api-body.mustache b/modules/openapi-generator/src/main/resources/C-libcurl/api-body.mustache index 88e3a26d0aab..36ce98d9275a 100644 --- a/modules/openapi-generator/src/main/resources/C-libcurl/api-body.mustache +++ b/modules/openapi-generator/src/main/resources/C-libcurl/api-body.mustache @@ -39,7 +39,7 @@ {{#pathParams}} // Path Params - long sizeOfPathParams_{{{paramName}}} = {{#pathParams}}{{#isLong}}sizeof({{paramName}})+3{{/isLong}}{{#isString}}strlen({{paramName}})+3{{/isString}}{{/pathParams}} + strlen("{ {{paramName}} }"); + long sizeOfPathParams_{{{paramName}}} = {{#pathParams}}{{#isLong}}sizeof({{paramName}})+3{{/isLong}}{{#isString}}strlen({{paramName}})+3{{/isString}}{{#hasMore}} + {{/hasMore}}{{/pathParams}} + strlen("{ {{paramName}} }"); {{#isNumeric}} if({{paramName}} == 0){ goto end;