Initialize nstrings

remotes/push_mirror/swebb/clamyara
Shawn Webb 11 years ago
parent a2bfd1a0ee
commit 3cdfd031e0
  1. 4
      libclamav/readdb.c

@ -2668,8 +2668,6 @@ static int cli_loadyara(FILE *fs, const char *dbname, struct cl_engine *engine,
if((rc = cli_initroots(engine, options)))
return rc;
printf("%s:%d called\n", __func__, __LINE__);
compiler.last_result = ERROR_SUCCESS;
STAILQ_INIT(&compiler.rules);
STAILQ_INIT(&compiler.current_rule_strings);
@ -2680,7 +2678,7 @@ static int cli_loadyara(FILE *fs, const char *dbname, struct cl_engine *engine,
#endif
while (!STAILQ_EMPTY(&compiler.rules)) {
sigs=0;
printf("%s:%d called\n", __func__, __LINE__);
nstrings=0;
rule = STAILQ_FIRST(&compiler.rules);
STAILQ_REMOVE(&compiler.rules, rule, _yc_rule, link);

Loading…
Cancel
Save