wasm_loader_ctx_init: Don't use false as a pointer (#422)

This commit is contained in:
YAMAMOTO Takashi 2020-10-13 15:13:30 +09:00 committed by GitHub
parent b929ee3f71
commit f7903caa65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3885,7 +3885,7 @@ wasm_loader_ctx_init(WASMFunction *func)
WASMLoaderContext *loader_ctx =
wasm_runtime_malloc(sizeof(WASMLoaderContext));
if (!loader_ctx)
return false;
return NULL;
memset(loader_ctx, 0, sizeof(WASMLoaderContext));
loader_ctx->frame_ref_size = 32;