From 4234d0c538219c29cce77587bef945253906d616 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Fri, 30 Dec 2016 15:54:26 +1000 Subject: [PATCH] * add asserts --- src/samplers/magick.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/samplers/magick.c b/src/samplers/magick.c index f0bc10a..379b7a5 100644 --- a/src/samplers/magick.c +++ b/src/samplers/magick.c @@ -13,6 +13,9 @@ simdb_record_create(simdb_rec_t * const rec, const char * const source) { size_t buf_size = 64 * sizeof(char); unsigned char *buf = NULL; + assert(rec != NULL); + assert(source != NULL); + InitializeMagick("/"); wand = NewMagickWand(); if (status == MagickPass)