mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-03-12 08:55:28 +00:00
wasm_loader_ctx_init: Don't use false as a pointer (#422)
This commit is contained in:
parent
b929ee3f71
commit
f7903caa65
|
@ -3885,7 +3885,7 @@ wasm_loader_ctx_init(WASMFunction *func)
|
||||||
WASMLoaderContext *loader_ctx =
|
WASMLoaderContext *loader_ctx =
|
||||||
wasm_runtime_malloc(sizeof(WASMLoaderContext));
|
wasm_runtime_malloc(sizeof(WASMLoaderContext));
|
||||||
if (!loader_ctx)
|
if (!loader_ctx)
|
||||||
return false;
|
return NULL;
|
||||||
memset(loader_ctx, 0, sizeof(WASMLoaderContext));
|
memset(loader_ctx, 0, sizeof(WASMLoaderContext));
|
||||||
|
|
||||||
loader_ctx->frame_ref_size = 32;
|
loader_ctx->frame_ref_size = 32;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user