wasm_loader_ctx_init: Don't use false as a pointer (#422)
This commit is contained in:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user