Skip to content

Commit

Permalink
Fix an issue caused by text reference in jsonRpc_prepareInvokeRequest.
Browse files Browse the repository at this point in the history
  • Loading branch information
PengZheng committed Jan 26, 2024
1 parent d833f70 commit c39b581
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/dfi/src/json_rpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ int jsonRpc_prepareInvokeRequest(const dyn_function_type* func, const char* id,
}

if (dynType_descriptorType(type) == 't') {
const char* metaArgument = dynType_getMetaInfo(type, "const");
// we need to get meta info from the original type, which could be a reference, rather than the real type
const char* metaArgument = dynType_getMetaInfo(entry->type, "const");
if (metaArgument != NULL && strcmp("true", metaArgument) == 0) {
//const char * as input -> nop
} else {
Expand Down

0 comments on commit c39b581

Please sign in to comment.