diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-04 13:56:30 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-04 13:56:30 +0100 |
commit | 3148ef9183936dd374ae934cb53eced969ff7766 (patch) | |
tree | f007ce3d5fe51a125638691cf81a032b56cc0cb9 /src/plugins/fuzzy_check.c | |
parent | 66ab265b3275d4a5b23573a6efa47cf2494f4f3c (diff) | |
download | rspamd-3148ef9183936dd374ae934cb53eced969ff7766.tar.gz rspamd-3148ef9183936dd374ae934cb53eced969ff7766.zip |
[Minor] Adjust array size for fuzzy commands
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r-- | src/plugins/fuzzy_check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 281b4d505..8ebbe68f1 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -1993,7 +1993,7 @@ fuzzy_generate_commands (struct rspamd_task *task, struct fuzzy_rule *rule, guint i; GPtrArray *res; - res = g_ptr_array_new (); + res = g_ptr_array_sized_new (task->parts->len + 1); if (c == FUZZY_STAT) { io = fuzzy_cmd_stat (rule, c, flag, value, task->task_pool); |