From e8c8f7fca6f590845282bb9f5e38907acce4bb3a Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Mon, 20 Nov 2023 10:36:15 +0800 Subject: [PATCH] Fix return type in wasm_loader_get_custom_section (#2794) Should return NULL instead of false. --- core/iwasm/interpreter/wasm_loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/iwasm/interpreter/wasm_loader.c b/core/iwasm/interpreter/wasm_loader.c index 9e88e205..f831073c 100644 --- a/core/iwasm/interpreter/wasm_loader.c +++ b/core/iwasm/interpreter/wasm_loader.c @@ -7026,7 +7026,7 @@ wasm_loader_get_custom_section(WASMModule *module, const char *name, section = section->next; } - return false; + return NULL; } #endif