aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/images.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-26 00:33:03 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-12-26 00:33:03 +0000
commitded98bb26df73818ada55daaf9a046746ed5ee08 (patch)
treea16978efc4e870bd4e2602a162e7949bad3e2d53 /src/libmime/images.c
parent41dcc59fc66cb643d034042da1f4c8847d70d49c (diff)
downloadrspamd-ded98bb26df73818ada55daaf9a046746ed5ee08.tar.gz
rspamd-ded98bb26df73818ada55daaf9a046746ed5ee08.zip
[Minor] Initialize DCT matrix
Diffstat (limited to 'src/libmime/images.c')
-rw-r--r--src/libmime/images.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/images.c b/src/libmime/images.c
index d6532b4fe..31b99f022 100644
--- a/src/libmime/images.c
+++ b/src/libmime/images.c
@@ -478,7 +478,7 @@ rspamd_image_normalize (struct rspamd_task *task, struct rspamd_image *img)
gdImageDestroy (src);
img->is_normalized = TRUE;
- dct = g_malloc (sizeof (gdouble) * RSPAMD_DCT_LEN);
+ dct = g_malloc0 (sizeof (gdouble) * RSPAMD_DCT_LEN);
img->dct = g_malloc0 (RSPAMD_DCT_LEN / NBBY);
rspamd_mempool_add_destructor (task->task_pool, g_free,
img->dct);