Fix return value not checked issue reported by Coverity (#1156)
Fix return value not checked issue in function init_wasm_timer, reported by Coverity
This commit is contained in:
@ -177,12 +177,14 @@ iwasm_main()
|
||||
wgl_init();
|
||||
hal_init();
|
||||
|
||||
// timer manager
|
||||
init_wasm_timer();
|
||||
/* timer manager */
|
||||
if (!init_wasm_timer()) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
// TODO:
|
||||
app_manager_startup(&interface);
|
||||
|
||||
fail:
|
||||
wasm_runtime_destroy();
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user