... | ... |
@@ -2411,6 +2411,11 @@ int cli_bytecode_prepare2(struct cl_engine *engine, struct cli_all_bc *bcs, unsi |
2411 | 2411 |
int rc; |
2412 | 2412 |
struct cli_bc_ctx *ctx; |
2413 | 2413 |
|
2414 |
+ if (!bcs->count) { |
|
2415 |
+ cli_dbgmsg("No bytecodes loaded, not running builtin test\n"); |
|
2416 |
+ return CL_SUCCESS; |
|
2417 |
+ } |
|
2418 |
+ |
|
2414 | 2419 |
cli_detect_environment(&bcs->env); |
2415 | 2420 |
switch (bcs->env.arch) { |
2416 | 2421 |
case arch_i386: |