Skip to content
Snippets Groups Projects
Commit ce84244a authored by psychocrypt's avatar psychocrypt
Browse files

fix segfault if option `asm` is not in `cpu.txt`

parent 13fbb8a5
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,7 @@ bool jconf::GetThreadConfig(size_t id, thd_cfg &cfg)
aff = GetObjectMember(oThdConf, "affine_to_cpu");
asm_version = GetObjectMember(oThdConf, "asm");
if(mode == nullptr || no_prefetch == nullptr || aff == nullptr)
if(mode == nullptr || no_prefetch == nullptr || aff == nullptr || asm_version == nullptr)
return false;
if(!mode->IsBool() && !mode->IsNumber())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment