Fixes this bogus message:
LibClamAV Warning: Cannot prepare for JIT, because it has already been converted to interpreter
| ... | ... |
@@ -34,8 +34,9 @@ int cli_bytecode_prepare_jit(struct cli_all_bc *bcs) |
| 34 | 34 |
for (i=0;i<bcs->count;i++) {
|
| 35 | 35 |
if (bcs->all_bcs[i].state == bc_skip) |
| 36 | 36 |
continue; |
| 37 |
- if (bcs->all_bcs[i].state != bc_loaded) {
|
|
| 38 |
- cli_warnmsg("Cannot prepare for JIT, because it has already been converted to interpreter");
|
|
| 37 |
+ if (bcs->all_bcs[i].state != bc_loaded && |
|
| 38 |
+ bcs->all_bcs[i].kind != BC_STARTUP) {
|
|
| 39 |
+ cli_warnmsg("Cannot prepare for JIT, because it has already been converted to interpreter\n");
|
|
| 39 | 40 |
return CL_EBYTECODE; |
| 40 | 41 |
} |
| 41 | 42 |
} |