Unit tests don't have fmap.

Don't crash unit tests.
remotes/push_mirror/0.96
Török Edvin 15 years ago
parent cdd2f4da40
commit b6c03fb9c1
  1. 2
      libclamav/scanners.c

@ -1871,6 +1871,8 @@ static int cli_scanraw(cli_ctx *ctx, cli_file_t type, uint8_t typercg, cli_file_
static void emax_reached(cli_ctx *ctx) {
fmap_t **ctx_fmap = ctx->fmap;
if (!ctx_fmap)
return;
while(*ctx_fmap) {
fmap_t *map = *ctx_fmap;
map->dont_cache_flag = 1;

Loading…
Cancel
Save