Browse Source

[Minor] Fix division by zero

tags/3.2
Vsevolod Stakhov 2 years ago
parent
commit
ae24d391fb
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/plugins/chartable.c

+ 1
- 1
src/plugins/chartable.c View File

@@ -596,7 +596,7 @@ rspamd_chartable_process_part (struct rspamd_task *task,
gdouble cur_score = 0.0;

if (part == NULL || part->utf_words == NULL ||
part->utf_words->len == 0) {
part->utf_words->len == 0 || part->nwords == 0) {
return FALSE;
}


Loading…
Cancel
Save