Browse Source

* add asserts

master
Alex 'AdUser' Z 8 years ago
parent
commit
4234d0c538
  1. 3
      src/samplers/magick.c

3
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); size_t buf_size = 64 * sizeof(char);
unsigned char *buf = NULL; unsigned char *buf = NULL;
assert(rec != NULL);
assert(source != NULL);
InitializeMagick("/"); InitializeMagick("/");
wand = NewMagickWand(); wand = NewMagickWand();
if (status == MagickPass) if (status == MagickPass)

Loading…
Cancel
Save